An API key identifies your account to the public API. You create, edit and revoke keys in the dashboard.
How many keys you can have
Section titled “How many keys you can have”| Account | Active keys |
|---|---|
| Standard | 1 |
| Partner | No limit |
Creating a key beyond the limit answers 409 API_KEY_LIMIT_REACHED. Revoke the active key first, or contact us about a partner account.
If your account has more active keys than the limit allows, you can still edit and revoke them.
What a key carries
Section titled “What a key carries”| Field | Meaning |
|---|---|
name |
Your label for the key. |
prefix |
The first characters of the key, to tell keys apart. The full key is never shown again. |
created_at |
When the key was created. |
expires_at |
When the key stops working. Empty means it does not expire. |
revoked_at |
When the key was revoked, if it was. |
last_used_at, last_used_ip |
The most recent request made with the key. |
allowed_ips |
The IPs and networks the key accepts requests from. Empty means any IP. |
domain_restricted, domain_public_ids |
Whether the key is limited to some domains, and which ones. |
Expired and revoked keys stay in the list, so you keep the history of who used what.
Confirming sensitive changes
Section titled “Confirming sensitive changes”Creating a key and changing its restrictions both ask you to confirm your identity: an authenticator code on accounts with two-factor authentication, your password on the others.
Changing a key
Section titled “Changing a key”You can replace the allowed IPs and the allowed domains of an active key at any time. Both lists are saved together, so the dashboard always sends the complete lists.
A key that is expired or revoked cannot be edited (409 API_KEY_INACTIVE). Create a new one instead.
Revoking a key
Section titled “Revoking a key”Revoking is permanent: a revoked key cannot be turned back on. Revoke a key as soon as you suspect it leaked, then create a replacement.
Good practice
Section titled “Good practice”- Keep the key in a secret manager or CI secret, never in source code.
- Set an expiry date on keys used for one-off jobs.
- Restrict every key to the IPs and domains it needs. See IP and domain restrictions.
- Check
last_used_atandlast_used_ipfrom time to time. A key nobody uses is a key to revoke.