Request an Access Token
When you’re ready to begin a session and start testing the API, send a request for an access token that includes the API key ("client_id" parameter) and API secret ("client_secret" parameter) following the request format shown below:
curl --request POST \
--url 'https://us.identity.api.liveramp.com/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id=<API secret> \
--data client_secret=<API secret>
POST /token HTTP/1.1
Host: us.identity.api.liveramp.com
Content-Type:application/x-www-form-urlencoded
client_id=<API key>&client_secret=<API secret>&grant_type=client_credentials
If the access token request is valid and authorized, the token server issues the access token in the format shown below:
{ "access_token":"<access token>","token_type":"Bearer","expires_in":900 }
Access tokens expire after 15 minutes (900 seconds). This value can be obtained from inspecting the token response and extracting the value from the expires_in attribute.
Updated about 1 year ago