You are here:
Sample Request and Response for Access Token
This sample request lets you obtain the access token and uses client_credentials as the grant_type for org authentication.
Sample Request
curl --location 'https://org_domain/services/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=client-key' \
--data-urlencode 'client_secret=client-secret'
Sample Response
{
"access_token": "your_access_token",
"signature": "your_signature",
"scope": "cdp_query_api cdp_ingest_api api cdp_profile_api",
"instance_url": "instance_url",
"id": "https://org_domain/id/00fdg000000dfgfgs/00gfd000000fsdghjr",
"token_type": "Bearer",
"issued_at": "4564564565767"
}
