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.
Creating a key
Section titled “Creating a key”Keys are created in the application under Settings > API keys.
- Press the New key button.
- 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”.
- Choose the scope: read only (
read) or read and write (write). - Press Create. The key is shown once.
sk-zr-9f2c4d7a1b6e8035c2af41d9e70b5c83Using it in requests
Section titled “Using it in requests”The key is sent in the Authorization header with the Bearer scheme.
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/" }}What a key covers
Section titled “What a key covers”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.
| Scope | What it can do | What it cannot do |
|---|---|---|
read | Call every listing and report endpoint | Create records, update them, queue a measurement |
write | Everything read can do, plus creating and updating brands, topics and prompts, and queueing measurements | Team, 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_idbelonging to another organization is requested, the answer is404 not_found, not403. This is so that the difference between “does not exist” and “you are not allowed to see it” is not leaked.
Rotating a key
Section titled “Rotating a key”Rotation means replacing a key without stopping the running system. The order matters:
- Create a new key. Do not revoke the old one yet; an organization can hold several active keys at the same time.
- Distribute the new key to all of your clients and finish the rollout.
- 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.
- Revoke the old key.
Revoking a key
Section titled “Revoking a 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.
Checklist
Section titled “Checklist”- 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
writescope 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
feedback.thanks