Skip to main content

TokenRequest

grant_typestringrequired

Possible values: [client_credentials, authorization_code, refresh_token]

client_idstring

Possible values: Value must match regular expression ^aoc_[a-z2-7]{26}$

client_secretstring
scopestring

Space-separated; a subset of what was granted or consented.

codestring

authorization_code: the single-use code from the redirect.

redirect_uristring<uri>

authorization_code: exactly the registered URI used.

code_verifierstring

authorization_code: RFC 7636 verifier (S256).

Possible values: >= 43 characters and <= 128 characters

refresh_tokenstring

refresh_token: the current refresh token; it is rotated.

TokenRequest
{
"client_id": "string",
"client_secret": "string",
"scope": "string",
"code": "string",
"redirect_uri": "string",
"code_verifier": "string",
"refresh_token": "string"
}