Sample Exchange Access Token for Data 360 Token Request and Response

This sample request exchanges the access_token value obtained from Sample Access Token Request and Response for dataCloudAuthToken.

For this sample, the access token is obtained from Sample Access Token Request and Response.

Sample Request

curl --location 'https://org_domain/services/a360/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: BrowserId=asdfsdfdsf-ertert-erter; CookieConsentPolicy=0:1; LSKey-c$CookieConsentPolicy=0:1' \
--data-urlencode 'grant_type=urn:salesforce:grant-type:external:cdp' \
--data-urlencode 'subject_token=your_access_token' \
--data-urlencode 'subject_token_type=urn:ietf:params:oauth:token-type:access_token'

Sample Response

{
    "access_token": "dataCloudAuthToken",
    "instance_url": "instance_url",
    "token_type": "Bearer",
    "issued_token_type": "urn:ietf:params:oauth:token-type:jwt",
    "expires_in": 7130
}