API keys & limits
How to send your key, what each key can do, and how many requests it can make.
Send the key
Add your key to every request:
Authorization: Bearer zig_live_3fa9c1…Can't set that header? Send X-API-Key: zig_live_3fa9c1… instead.
More about keys
Keys are zig_live_ followed by 64 hexadecimal characters. Your normal ZigCRM sign-in doesn't work with the API, and an API key can't be used to sign in to ZigCRM.
Scopes
Scopes decide what a key is allowed to do. You pick them when you create the key:
| Scope | Allows |
|---|---|
contacts:read |
List, search and get contacts. |
contacts:write |
Create contacts and update their details. |
contacts:delete |
Delete contacts. |
GET /api/v1/me works with any key. Calling an endpoint without its scope returns 403 insufficient_scope.
Give each tool its own key with only the scopes it needs — a reporting tool only needs contacts:read.
Manage keys
Admins (and users with the API keys permission) manage keys in Settings → API Keys:
- Create — pick a name, scopes and expiry (never, 30 days, 90 days or 1 year). Up to 10 active keys per account.
- Check — see each key's prefix, scopes, when it was last used and when it expires.
- Revoke — the key stops working immediately.
Swapping a key without downtime: create a new key → put it in your app → when the old key's Last used stops changing, revoke it.
Rate limits
Each key can make 120 requests every 60 seconds. Every key has its own limit, so your tools don't slow each other down.
Go over it and you get 429 Too Many Requests with a Retry-After header. Wait that many seconds, then try again.
To stay under the limit: fetch 100 results at a time (per_page=100), fetch only what changed, and send requests one after another instead of all at once.
Example 429 response
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Content-Type: application/json
{ "error": { "code": "rate_limited", "message": "Too many requests for this API key. Retry after the period in the Retry-After header." } }
Keep keys safe
- Store keys in environment variables or a secrets manager — not in your code.
- Call the API from your server only. Browsers are blocked, so a key can't leak from a web page.
- Think a key leaked? Revoke it and create a new one.