Skip to main content

Authentication and Authorization

To authenticate to the UID2 endpoints in a server-side implementation, you need the following:

  • A client API key. The API key is included as a bearer token in the request's Authorization header. For example:
    Authorization: Bearer YourTokenBV3tua4BXNw+HVUFpxLlGy8nWN6mtgMlIk=
  • A client secret for encrypting API requests and decrypting API responses. This is needed for all endpoints except POST /token/refresh.
    For details and Python examples, see Encrypting Requests and Decrypting Responses.