v1

latestOpenAPI 3.0.02026-07-26166415635.8 KB
OAuth

Issue an OAuth token

The operation issues an OAuth code which can be used in the OAuth code flow.

post/v1/oauth/token

Request body

account_idstring uuid required

end-user account ID

client_idstring required

OAuth client ID

client_secretstring required

OAuth client secret

redirect_uristring required

redirect URI for the OAuth flow

scopestring required

scopes requested by the OAuth flow

Example request

{
  "account_id": "0d18ae51-3c94-4511-b209-101e1666416b",
  "client_id": "7a3c52a910e1dc2abbb14da2b6b8e711",
  "client_secret": "bbb14da2b6b8e7117a3c52a910e1dc2a",
  "redirect_uri": "http://localhost",
  "scope": "general"
}

Response

Success.

access_tokenstring required

OAuth token

scopestring required

Token's scope

token_type'Bearer' required

Always Bearer

Example response

{
  "token_type": "Bearer"
}