Obtain/Refresh Tokens

This endpoint is used to obtain a new access token using various OAuth 2.0 grant types or refresh an existing token.

Body Params
string
required

The unique identifier for the client application requesting the token.

string
required

The secret key associated with the client application, used for authentication.

string
enum
required

The OAuth 2.0 grant type. Possible values: 'authorization_code' or 'refresh_token'.

Allowed:
string

The authorization code received from the authorization endpoint. Required if 'grant_type' is 'authorization_code'.

string

The refresh token used to obtain a new access token. Required if 'grant_type' is 'refresh_token'.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json