GuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelogLog In
fixed

Content-type mandatory in authentication header

If you have implemented your calls to Criteo authentication endpoint /oauth2/token without the header Content-Type: application/x-www-form-urlencoded, this header will be mandatory beginning on May 11th.

Please ensure your implementation is compliant with our guide before this date, otherwise, you will see the following error when calling the authentication endpoint:

{
    "error": "invalid_request",
    "error_description": "The request content-type header must be \"application/x-www-form-urlencoded\".",
    "error_uri": "https://tools.ietf.org/html/rfc6749#section-5.2"
}

These controls ensure we offer you the best developer experience and adhere to the latest API best practices.