auth

Exchange credentials for an access token

[cloud-only] Exchanges authentication credentials (e.g. an authorization code) for an access token.

post/api/auth/token

Request body

grant_type'authorization_code' | 'refresh_token' required

OAuth2 grant type

codestring

Authorization code (for authorization_code grant)

refresh_tokenstring

Refresh token (for refresh_token grant)

redirect_uristring uri

Redirect URI used in the authorization request

Response

Token response

access_tokenstring required
token_typestring required

Always "Bearer"

expires_ininteger

Token lifetime in seconds

refresh_tokenstring nullable
scopestring

Changes