An API key lets one of your systems, such as a website, a script or an automation tool, call the REST API on behalf of your company. This page explains who can make keys, what a key can do, and how to replace or cancel one safely.
Before you start
- Plan: keys are available when your plan includes API access. Without it, the API keys screen is not shown and every existing key is refused with
403. - Role: only owners and administrators can open API keys, create keys and revoke them. Members and viewers cannot.
- Where: open Contacts in the sidebar, then Tools, then API keys.
How a key works
A key always acts as the person who created it, with that person's current role. Nothing about the key itself changes when the person changes, but what it can do follows them on every request:
| What happens to the creator | Effect on their keys |
|---|---|
| Their role is lowered from administrator to member | The key still reads and writes contacts, notes and deals, but can no longer subscribe webhooks or send ad spend, which need an owner or administrator |
| Their role is lowered to viewer | The key can only read. Writes return 403 |
| They are suspended | Every request returns 401. The key works again if they are reinstated |
| They are removed from the company | Every request returns 401, permanently. If they are added back later, their old keys stay dead and they must create new ones |
| A custom role that blocks API access is assigned to them | Every request returns 403 |
| The company is suspended | Every request returns 401 |
| The plan no longer includes API access | Every request returns 403. Keys work again when the feature returns |
Each key also has one of two access levels:
| Access | Allows |
|---|---|
| Read only | GET requests only. Any POST or DELETE returns 403 with the message This key is read only. |
| Read and write | All endpoints, within the creator's role |
Give each system the least it needs. A reporting script needs Read only. A website that creates contacts needs Read and write.
Create a key
- Open Contacts, then Tools, then API keys.
- Under Create key, type a Key name that says where the key will be used, for example "Website contact form". Names can be up to 80 characters.
- Choose the Access level: Read only or Read and write.
- Select Create key.
- Copy the key from the box that says Copy this key now. It will not be shown again. and store it in your system's secret settings.
The key is shown only once. It is stored as a one-way hash, so nobody, including support, can show it to you again. If you lose it, create a new key and revoke the old one.
Keys start with a short word and an underscore, followed by 48 random characters. This guide writes them as YOUR_API_KEY. Treat the whole string as a password.
See your keys
The API keys screen lists every active key with its name, the last eight characters of the key, its access level, and when it was last used (Last used with a date, or Never used). The last-used date is refreshed at most once a minute, so it is a guide rather than an exact log.
Rotate a key
There is no button that changes an existing key, so you rotate by overlapping two keys:
- Create a new key with the same access level and a name that marks it as new.
- Put the new key into your system and deploy the change.
- Wait until the new key shows a Last used date, which confirms your system is using it.
- Select Revoke next to the old key.
Rotate when someone who had the key leaves, when a key may have been exposed, and on a regular schedule that suits your security policy.
Revoke a key
Select Revoke next to the key. Revocation is immediate: the next request with that key returns 401 Invalid API key. A revoked key cannot be restored. It disappears from the list and no longer counts towards the limit.
Good to know
- A company can have up to 10 active keys. Creating an eleventh shows This company has reached 10 active keys. Revoke a key you no longer need first.
- A key belongs to one company. It never sees another company's data, even if its creator belongs to several.
- Keys keep working when the product name changes. A key is recognised by its hash, not by its first word.
- Never put a key in a web page, a mobile app or any code a visitor can download. The API sends no cross-origin headers, so browsers cannot call it anyway. Call it from your server.
- Use a separate key for each system, so you can revoke one without stopping the others.
Troubleshooting
| Problem | What to check |
|---|---|
401 Invalid API key. |
The key was revoked, mistyped, or its creator was suspended or removed. Check the header is Authorization: Bearer YOUR_API_KEY with nothing else around the key |
403 API access is not in this plan. |
The plan no longer includes API access, or the creator has a custom role that blocks it. See Roles and access |
403 This key is read only. |
Create a Read and write key for systems that write |
403 This action is unauthorized. |
The creator's role does not allow the action. Ask an owner or administrator to create the key |
| You cannot find API keys under Tools | You are not an owner or administrator, or the plan does not include API access |
Last updated 2026-11-08