Skip to main content

Introduction

  • To get started with our APIs, use the endpoint below to generate an Access Token with your API credentials.
  • The access token is a Bearer token to be included in the Authorization Header of all API requests.
  • Multiple tokens may be generated, each valid for 15 minutes or 900 seconds.

Endpoint

NoteGenerate another access token when it expires, signaled by a 401 Unauthorized HTTP status code

Parameters

ParameterDescription
client_idSet up your API credentials through our Developer Portal
client_secretSet up your API credentials through our Developer Portal
grant_typeMust be client_credentials or authorization_code
For more info, check OAuth App Implementation

Generate an Access Token

  • This endpoint generates a new access token using your API credentials

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
}

What’s Next