Request access token
POST
/v2/token
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/token' \
--header 'Accept: application/json' \
--form 'client_id="<replace with client id>";type=string' \
--form 'client_secret="<replace with client secret>"' \
--form 'grant_type="client_credentials"'
Response Response Example
200 - Request Access Token (200)
{
"data": {
"token_type": "Bearer",
"expires_in": 31622400,
"access_token": "<access token>"
},
"meta": {
"message": "success"
}
}
Request
Header Params
Accept
string
required
Example:
application/json
Body Params multipart/form-data
client_id
string
required
Example:
<replace with client id>
client_secret
string
required
Example:
<replace with client secret>
grant_type
string
required
It indicates server-to-server authentication, where the client application directly requests an access token without user intervention.
Example:
client_credentials
Responses
Modified at 2024-12-17 16:46:10