Parts of this page are still in Japanese (English translation pending).

OAuth 2.0 / OpenID Connect

Issue token

POSThttps://auth.agribus-connect.net/token

OAuth 2.0 のトークンエンドポイント。application/x-www-form-urlencoded で grant_type を指定する。
認可コードフロー (authorization_code) では code・redirect_uri・client_id・client_secret (PKCE の場合は code_verifier) を送る。
リフレッシュは refresh_token。

Authentication

None

Parameters

None

Request body

application/x-www-form-urlencoded *

NameTypeDescription
grant_type *string
authorization_coderefresh_tokenclient_credentials
codestringAuthorization code (authorization_code)
redirect_uristringSame redirect URI as in the authorization request
client_idstring
client_secretstring
code_verifierstringPKCE code_verifier
refresh_tokenstringRefresh token (refresh_token)
scopestringRequested scopes (space-separated)

curl example

curl -X POST 'https://auth.agribus-connect.net/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'grant_type=authorization_code' \
  -d 'code=<code>' \
  -d 'redirect_uri=<redirect_uri>' \
  -d 'client_id=<client_id>' \
  -d 'client_secret=<client_secret>'

Responses

200 — OK · application/json TokenResponse

{
  "accessToken": "string",
  "refreshToken": "string",
  "accessTokenExpiredAt": "2016-01-01T00:00:00.000Z",
  "refreshTokenExpiredAt": "2016-01-01T00:00:00.000Z"
}

Generated from the production OpenAPI documents as of 2026-10-27