Your API key

Every call carries your API key in the JSON body, as api_key. It is never sent in a header or in the URL, because URLs end up in logs. That is why every endpoint is a POST, including the ones that only read. There is no header form: a key sent in a header, such as X-API-Key, is not read.
On request-data the key goes inside the data object, with the rest of the request:

Getting a key

Keys are issued by our team. Contact your account manager to get one. Your key decides which publishers you can use. my-publishers lists them. If a publisher you need is missing, ask us to add it to your account.

Keeping it safe

Treat your API key like a password. It identifies your account and gives access to your data.
  • Keep it in a secret store or an environment variable, never in source code.
  • Call the API from your server, never from a browser or a mobile app.
  • Keys are issued per environment. A test key does not work against production.
  • If a key leaks, contact us. We issue a new one and revoke the old one.

When the key is wrong

A missing, wrong or revoked key answers 401:
See Errors for every error and what to do about it.