Reference
Exchange an authorization code or refresh token
Authorization
oauthClient AuthorizationBasic <token>
OAuth client credentials using HTTP Basic. The OAuth endpoints also accept client credentials in the form body where documented.
In: header
Request Body
application/x-www-form-urlencoded
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/oauth/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=authorization_code'{ "access_token": "string", "token_type": "Bearer", "expires_in": 1, "refresh_token": "string", "id_token": "string", "scope": "string"}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}{ "error": "string", "error_description": "string", "details": [ null ]}