Skip to main content
POST
Exchange authorization code or refresh token for access token

Body

OAuth 2.0 token request

client_id
string
required

OAuth application client ID

Example:

"app_12345"

grant_type
enum<string>
required

OAuth grant type

Available options:
authorization_code,
refresh_token
Example:

"authorization_code"

client_secret
string

OAuth application client secret (required for confidential clients)

redirect_uri
string

Redirect URI used during authorization (required for authorization_code grant)

Example:

"https://example.com/callback"

code
string

Authorization code (required for authorization_code grant)

refresh_token
string

Refresh token (required for refresh_token grant)

code_verifier
string

PKCE code verifier (required for public clients using authorization_code grant)

Response

OK

The response is of type object.