Create a key
1
Open API keys
Click your workspace name, then Settings → API keys.
2
Create it
Click Create API key and give it a name. The name is only for your own reference later —
Production backend, Ivan's laptop, whatever helps you recognise it when deciding what to revoke.3
Copy it now
The key is shown once, on the Save your API key screen. Copy it before closing the dialog.
There’s no way to retrieve a key after that dialog closes. Only a prefix is stored for display, so the list can show you which key is which without being able to reveal any of them. Lost a key? Delete it and create another.
Send it with a request
Pass the key as a bearer token:
All three are equivalent.
Authorization is checked first.
Manage keys
The list shows each key’s name, when it was created, and when it was last used — or Never used, which is the quickest way to spot a key you can safely remove. You can create as many keys as you like. Separate keys per environment or per service are worth the small effort: revoking one doesn’t disturb the others, and “last used” then tells you something specific. Delete revokes a key immediately. Calls using it start failing withinvalid_api_key on the next request; there’s no grace period.
A key also stops working when the owner who created it leaves the workspace. Calls then fail with key_not_scoped. Before removing a member who created keys, replace their keys with new ones.
Keep keys secret
A key reaches your whole workspace. Over the MCP server, any key can read contacts, campaigns, and analytics, add contacts, and edit and delete emails, as well as spend credits. That includes a key you created only for REST generation. Treat it like a password:- Keep it server-side. Never ship it in a browser bundle, a mobile app, or a public repository.
- Put it in an environment variable rather than in source.
- Rotate by creating the new key first, deploying it, then deleting the old one — that way there’s no window where calls fail.
Errors
Full list on the Errors page.