Introduction
To get started with our APIs, you will need to use the endpoint below to generate an Access Token, with your API credentials or authorization code. The Access Token is a Bearer token that needs to be included in the Authorization Header of all API requests. Multiple tokens may be generated and each is valid for 15 minutes, or 900 secondsEndpoint
Generate an Access Token
If you receive a
401 Unauthorized HTTP status code, it means your access token has expired. Generate a new token to continue making authenticated requests.Reference
You can find this endpoint in our Reference section as well.
Parameters
Parameter | Type | Description |
|---|---|---|
| string | Please see below for instructions on getting your credentials throughPartner Dashboard |
| string | Please see below for instructions on getting your credentials throughPartner Dashboard |
| string | Must be |
| string | Only for Authorization Code apps. Authorization code returned during redirection |
| string | Only for Authorization Code apps. Must match the |
Generate an Access Token
- This endpoint generates a new access token using your API credentials or authorization code.
- To comply with the OAuth2 standards of using
client_credentials, Criteo API authorization supportsContent-Type: application/x-www-form-urlencoded, as shown in the example below:
Use an Access Token
Once you have obtained your access token, you can authenticate for all subsequent requests by including anAuthorization HTTP header, as shown in the example below:
Header
OAuth FlowYou can find more details about how to implement OAuth flow for the different authentication methods in our OAuth implementation guides.