Oauth Token Exchange
Exchange an authorization_code from the /users/v1/oauth/response/{platform}
endpoint for an access token and refresh token.
Parameters
Header Parameters
Request Body required
OAuth token exchange request.
object
Grant type for the OAuth exchange.
Authorization_code for the OAuth exchange.
If true, the user has accepted the EULA.
If true, the user has accepted the TOS.
If true, the user has accepted the Privacy Policy.
Responses
200
Successful Response
OAuth token exchange response. Successful response will contain an access_token and refresh_token.
If the user has not accepted all required agreements, the response will contain the appropriate needs_* flags and a regenerated_code. The regenerated_code is an authorization_code that can be used after the user has accepted the required agreements.
object
Access token for the user.
Refresh token for the user.
If true, the user must accept the EULA before a token can be generated.
If true, the user must accept the TOS before a token can be generated.
If true, the user must accept the Privacy Policy before a token can be generated.
If present, a new code was generated and can be used after the user accepts the required agreements.
Error message if an error occurred.
403
Error Codes:
authorization_code_not_found
: Authorization code not found or expired
object
422
Validation Error