Skip to main content

Create access token

Creates an access token which can be used to access the CelerData Cloud BYOC API.

Request

Basic information
HTTP URLhttps://cloud-api.celerdata.com/api/1.0/token?grant_type=client_credentials
HTTP methodPOST
Frequency600/minute

Header parameters

ParameterExample valueRequiredTypeDescription
AuthorizationBasic NTAyOTJjM2MtMmI5NS00MTdmLTg4MGQtMGM3ZThjMjZlYWMxOllPa2x4WTI0UktndmVpa2tuVUk0OFJ1SG5rUHNGaXQxdTBpMlRHeXA=YesStringThe 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

ParameterValueRequiredTypeDescription
grant_typeclient_credentialsYesStringSet the value to client_credentials.

Response

Sample response

{
"access_token": "M2M3YZLLNMETNWJLZC0ZZMI1LWIYY2UTMZQ3YJG3MTA5MDA5",
"expires_in": 3600,
"refresh_token": "OWE2MTLKZJQTMZC0YY01OWZKLTLINDQTZJIZZDRLZDFKYTNL",
"token_type": "Bearer"
}

Response elements

ParameterExample valueTypeDescription
access_tokenM2M3YZLLNMETNWJLZC0ZZMI1LWIYY2UTMZQ3YJG3MTA5MDA5StringThe access token generated.
expires_in3600IntegerThe amount of time after which the access token will expire. Unit: seconds.
refresh_tokenOWE2MTLKZJQTMZC0YY01OWZKLTLINDQTZJIZZDRLZDFKYTNLStringThe refresh token generated along with the access token.
token_typeBearerStringThe type of token generated.