Exchange Tokens
Exchange authorization code or refresh token for access tokens
Responses
access_tokenstringrequired
token_typestringrequired
― Bearer
expires_inintegerrequired
Expiration time in seconds
refresh_tokenstring
scopestring
Space-separated list of granted scopes
id_tokenstring
JWT containing user claims
expires_atinteger
Timestamp when the token expires
{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 0,
"refresh_token": "string",
"scope": "string",
"id_token": "string",
"expires_at": 0
}errorstringrequired
― invalid_request
― invalid_client
― invalid_grant
― unauthorized_client
― unsupported_grant_type
― invalid_scope
― authorization_pending
― slow_down
― expired_token
error_descriptionstring
error_uristring · uri
{
"error": "invalid_request",
"error_description": "string",
"error_uri": "https://example.com"
}errorstring
― invalid_client
error_descriptionstring
{
"error": "invalid_client",
"error_description": "string"
}POST
/oauth/tokenServer URL: https://login.yotoplay.com
Request Body
curl "https://login.yotoplay.com/oauth/token"