Create access token
Creates an access token which can be used to access the CelerData Cloud BYOC API.
Request
Basic information | |
---|---|
HTTP URL | https://cloud-api.celerdata.com/api/1.0/token?grant_type=client_credentials |
HTTP method | POST |
Frequency | 600/minute |
Header parameters
Parameter | Example value | Required | Type | Description |
---|---|---|---|---|
Authorization | Basic NTAyOTJjM2MtMmI5NS00MTdmLTg4MGQtMGM3ZThjMjZlYWMxOllPa2x4WTI0UktndmVpa2tuVUk0OFJ1SG5rUHNGaXQxdTBpMlRHeXA= | Yes | String | The base64 encoded string generated by using the secret key and client ID of your application key or service account. Format: Basic base64(<client_id>:<secret>) . |
See Generate a base64 encoded string.
Query parameters
Parameter | Value | Required | Type | Description |
---|---|---|---|---|
grant_type | client_credentials | Yes | String | Set the value to client_credentials . |
Response
Sample response
{
"access_token": "M2M3YZLLNMETNWJLZC0ZZMI1LWIYY2UTMZQ3YJG3MTA5MDA5",
"expires_in": 3600,
"refresh_token": "OWE2MTLKZJQTMZC0YY01OWZKLTLINDQTZJIZZDRLZDFKYTNL",
"token_type": "Bearer"
}
Response elements
Parameter | Example value | Type | Description |
---|---|---|---|
access_token | M2M3YZLLNMETNWJLZC0ZZMI1LWIYY2UTMZQ3YJG3MTA5MDA5 | String | The access token generated. |
expires_in | 3600 | Integer | The amount of time after which the access token will expire. Unit: seconds. |
refresh_token | OWE2MTLKZJQTMZC0YY01OWZKLTLINDQTZJIZZDRLZDFKYTNL | String | The refresh token generated along with the access token. |
token_type | Bearer | String | The type of token generated. |