Authentication
Each request to a /v1/ endpoint must carry an API key as a bearer token:
GET /v1/me HTTP/1.1Host: api.zillodata.comAuthorization: Bearer zdk_7Qm2...A missing or unknown key gets a 401 before any work happens, and you are
not charged.
Creating a key
Sign in, open API keys in the dashboard, and click
Create key. Give it a name that says where it will run, such as
raleigh-crm-prod.
The full key appears once, right after you create it. We keep only a SHA-256 hash of it, so nobody (including our support team) can look it up later. The dashboard shows the first few characters afterwards so you can tell keys apart, along with when each was last used.
What a key looks like
Keys begin with zdk_ and continue with 43 URL-safe characters (32 random
bytes, base64url encoded). Treat the whole string as a password.
Rotating without downtime
- Create a second key in the dashboard.
- Deploy it to your app or secret store.
- Watch Logs or Usage until traffic shows up on the new key.
- Revoke the old key.
A revoked key stops working right away. Requests that still use it get
401 invalid_api_key.
Keys created by AI connectors
When you connect ZilloData to Claude or another MCP client through the OAuth sign-in flow, the approval step creates a key for that client on your account. It appears in API keys under the client’s name, bills the same credits, and can be revoked the same way. Reconnecting the same client replaces its previous key. See AI agents and MCP.
Auth-related errors
| Status | error.code |
What happened |
|---|---|---|
| 401 | missing_api_key |
No Authorization: Bearer ... header was sent |
| 401 | invalid_api_key |
The key is malformed, unknown, or revoked |
| 402 | out_of_credits |
Your credit balance is zero, so every /v1/ call is refused until you add credits or your plan renews |
| 403 | account_suspended |
The account is suspended or closed |
| 429 | rate_limited |
Too many requests this minute. See Rate limits |
Every 401 also includes a WWW-Authenticate header that points to the
OAuth metadata at https://api.zillodata.com/.well-known/oauth-protected-resource.
Agents use it to discover how to sign in. Regular API clients can ignore it.
Keeping keys safe
- Call the API from your server. A key placed in a web page or mobile app can be read by anyone who uses it.
- Use one key per environment, so a leaked staging key never touches production.
- Give each service its own key. You can then revoke one without breaking the others, and usage is easier to trace.
- Load keys from an environment variable or secret manager rather than committing them to a repository.