API Reference

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
required

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

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

Response body
object
string
required

Unique identifier for the request.

integer
required

Numeric error code representing the status of the response. A value of 200 indicates success.
See the Error Codes section for more information.

string
required

Message detailing the status of the response.

data
object
required
string
required

The newly issued access token to be used for authorized API requests.

string
required

A token that can be used to obtain a new access token once the current one expires.

integer
required

The duration in seconds until the access token expires.

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