Only workspace owners and admins can make or remove keys. A key can read your data and spend your plan usage, so it is kept to those roles.
Make a key
1
Open Workspace settings
In ZeroRank, go to Workspace settings and find the API Access card.
2
Click New API key
Give the key a name you will recognize later, like
Production server.3
Choose what it can do
Leave Allow write access on for a key that can change data. Turn it off for a read-only key.
4
Pick when it expires
Choose Never, 30 days, 90 days, or 1 year. The key stops working after that.
5
Copy the key
Click Create key and copy it right away. You will not see the full key again.
zr_live_ followed by a long string of letters and numbers.
What a key can do
Each key carries one or both of these scopes (the things it is allowed to do):- read — every key has this. It can read your data with
GETrequests. - write — needed to create, update, delete, or run anything.
write request with a read-only key gets a 403 reply.
In the app, the Allow write access switch sets this. On gives a
read + write key. Off gives a read-only key.Send your key
Put the key in theAuthorization header of each request, after the word Bearer.
See and remove keys
The API Access card lists your active keys. For each one you can see its name, scopes, when it was made, and when it was last used. To turn a key off, click the trash icon and confirm. The key stops working right away. Do this if a key leaks or you no longer need it.A workspace can have up to 25 active keys at once. Remove an old key to make room for a new one.
When a request is refused
401 — the key is missing or invalid
401 — the key is missing or invalid
Check that you sent the
Authorization header and that it starts with Bearer . Make sure the key is not removed or expired.403 — the key is read-only
403 — the key is read-only
You tried to change data with a read-only key. Make a new key with Allow write access on, or use one you already have.
402 or 403 — your plan cannot use the API
402 or 403 — your plan cannot use the API
The API needs a paid plan or an active trial. Check your plan on the billing page. The free tier cannot use the API.
429 — too many requests
429 — too many requests
You went over your per-minute limit. Wait the seconds shown in the
Retry-After header, then try again. Higher plans get a higher limit.Keep going
API overview
The base address, rate limits, and what comes back.
Billing and plans
See which plan you are on and what it includes.