Authentication - Criteo Docs

Introduction


Endpoint

If you receive a 401 Unauthorized HTTP status code, it means your access token has expired. Generate a new access token to continue making requests.


Parameters

Parameter Description
client_id Set up your API credentials through our Developer Portal
client_secret Set up your API credentials through our Developer Portal
grant_type Must be client_credentials or authorization_code

For more info, check OAuth App Implementation.


Generate an Access Token

Sample Request

curl -X POST "https://api.criteo.com/oauth2/token" \
    -d 'client_id={client_id}' \
    -d 'client_secret={client_secret}' \
    -d 'grant_type=client_credentials'

Sample Response

{
    "access_token": "<TOKEN STRING>",
    "token_type": "Bearer",
    "expires_in": 900
}