Skip to content

Authentication

The Zeo Radar API uses a single authentication method: an API key bound to an organization. There are no session cookies, no basic auth and no signed requests. A machine cannot hold a session, so it is given a key instead.

Keys are created in the application under Settings > API keys.

  1. Press the New key button.
  2. Give the key a name. The name is only for you, and it is what lets you know which key you are revoking later. Something like “Looker connection” or “warehouse nightly job”.
  3. Choose the scope: read only (read) or read and write (write).
  4. Press Create. The key is shown once.
sk-zr-9f2c4d7a1b6e8035c2af41d9e70b5c83

The key is sent in the Authorization header with the Bearer scheme.

Terminal window
curl "https://api.zeoradar.com/v1/brands" \
-H "Authorization: Bearer sk-zr-9f2c4d7a1b6e8035c2af41d9e70b5c83"

Sending the key as a query parameter is not supported. A query string is written into server logs, browser history and the referrer header; a header is not.

If the header is missing or malformed, the response is 401:

{
"data": null,
"meta": {
"request_id": "req_01K3Z8Q4M7VN0R2XW9",
"generated_at": "2026-08-27T09:12:44Z"
},
"error": {
"code": "missing_api_key",
"message": "The Authorization header is missing or was not sent with the Bearer scheme.",
"field": null,
"doc_url": "/docs/api/authentication/"
}
}

A key is bound to one organization and sees every brand in that organization. This is a direct reflection of the product’s data model: organizations is the billing and tenancy unit, brands always carries an org_id, and row level security filters every row through that link.

ScopeWhat it can doWhat it cannot do
readCall every listing and report endpointCreate records, update them, queue a measurement
writeEverything read can do, plus creating and updating brands, topics and prompts, and queueing measurementsTeam, role, plan and billing operations

The practical consequences are these:

  • A key is not brand scoped. If you want to grant access to a single brand, the way to do it today is to keep that brand in its own organization. In an agency workspace every client is already a separate organization; see the agency workspace page for details.
  • A key belongs to the organization, not to a person. If the person who created the key leaves the team, the key keeps working. Revoking the keys created by someone who has left should be an item on your offboarding checklist.
  • One key cannot read another organization’s data. When a brand_id belonging to another organization is requested, the answer is 404 not_found, not 403. This is so that the difference between “does not exist” and “you are not allowed to see it” is not leaked.

Rotation means replacing a key without stopping the running system. The order matters:

  1. Create a new key. Do not revoke the old one yet; an organization can hold several active keys at the same time.
  2. Distribute the new key to all of your clients and finish the rollout.
  3. Watch the “last used” column of the old key under Settings > API keys. When the column stops updating, nobody is using that key any more.
  4. Revoke the old key.

The Revoke button on the same screen invalidates the key immediately. Revocation cannot be undone, and every later request made with that key gets 401 invalid_api_key. A measurement already in flight is not affected by the revocation; what drives a run is the record in the runs table, not the key that queued it.

If a key leaks, the order is reversed: revoke first, then create and distribute the new one. A few minutes of downtime is better than an exposed key.

  • The key lives in an environment variable, not in code.
  • The key is not written into version control or into log output.
  • Clients that only need to read have not been given a write scope key.
  • Keys created by people who have left the team have been revoked.
  • The last used time of each key is reviewed regularly.

feedback.question