API Keys
Create, configure, and manage API keys from your dashboard.
API keys authenticate your requests to the API. You manage them entirely from API → API keys in the dashboard: set a category, restrict usage with rolling quotas, add an expiry date, and monitor activity per key in the request log.
For how to include a key in a request, see the Introduction.
Creating a key
Open the form
Go to API → API keys in your dashboard and click New API key.
Fill in the fields
Give the key a Name (unique in the workspace), pick a Category on the API key options tab, and optionally set Expires and the Request limits.
Copy the secret
Click Create API key. The API key created window shows the full key with a Copy button: store it in an environment variable or a secret manager right away.
Key fields
| Field | Description |
|---|---|
| Name | Unique label per workspace (the alias in some error messages). Shows up in the request log and analytics filters. |
| Category | Organizational tag (see Categories). Has no effect on API behavior. |
| Active | Enables or disables the key. Inactive keys are rejected immediately with 401 Inactive API Key. |
| Expires | Optional date after which the key stops working. Leave blank for no expiry. |
| Request limits | Optional per-key caps on rolling time windows (see Per-key quotas). |
Categories
Categories tag keys for your own organization. They appear in dashboard filters and analytics but do not change how the API processes a request.
| Category | Typical use |
|---|---|
production | Live traffic, customer-facing systems |
development | Local development and testing |
staging | Pre-production and CI environments |
| Custom | Any free-text label, e.g. sandbox, partner-acme |
Keep one key per environment so you can revoke or rotate it independently.
Per-key quotas
Each key can have independent hard caps on request volume, enforced on rolling windows (not calendar boundaries):
| Quota | Window |
|---|---|
| Total | Global hard-stop limit in the dashboard. All-time: once reached, the key's billable calls are refused until you raise it |
| Daily | 24-hour sliding window limit. Last 24 hours (rolling, not midnight-to-midnight) |
| Weekly | 7-day sliding window limit. Last 7 days (rolling) |
| Monthly | 30-day sliding window limit. Last 30 days (rolling) |
Leave a field blank to apply no cap for that window. When a quota is reached, the API returns 401 with Rate limit exceeded for the API key: and the quota name in the message:
{ "error": "Rate limit exceeded for the API key: quota total" }A quota counts the calls that succeed (a status below 400) or end in 404, billed or not. With a quota of 100, the next call after 100 counted ones is refused, also when calls are sent at the same time.
An asynchronous call counts once, from the moment it is accepted. It stops counting if the job ends in 400 or 500. A job that ends in 404 still counts, and is billed unless the endpoint is set not to charge not-found results.
Usage, Stats and job polling do not count and stay available once a quota is reached. Refused calls (401, 402, 403, rate limits, quotas) and other errors do not count either. A running call holds a place until it ends; a call that fails frees it within about a minute.
Per-key quotas are distinct from plan-level rate limits (per-second and per-minute caps set by your plan). Plan limits are counted per key too: each key gets the full plan limit. Both return 401, with a message that names the limit you reached. See Error Handling for details.
Expiry
Set an expiry date on keys used in scripts, CI pipelines, or partner integrations. Once the date passes, the API returns:
{ "error": "Expired API Key" }HTTP status 401. Create and deploy a replacement key before the expiry date to avoid any downtime.
Request logs
Every request made with a key is recorded under API → Request log in the dashboard, where you can filter by API key. Each entry shows:
| Field | Description |
|---|---|
| Endpoint | HTTP method and path |
| Status | Response status code |
| Duration | Time to first byte (ms) |
| IP | Caller IP address |
| Credits | Credits charged for this request |
Use logs to audit activity per key, debug unexpected errors, or identify traffic from compromised keys.
Deactivating, archiving, or deleting
| Action | Effect |
|---|---|
| Deactivate | Edit the key and set Active to No. The key is blocked immediately and stays on the list. Turn it back on to use it again. |
| Archive | From the row menu. Key is blocked and hidden from the list. Open Archived to see it. Restore returns it to the list, still inactive. The alias stays reserved. Request history is kept. |
| Delete | From the edit window. Permanently removes the key and its configuration. Only possible if the key has never been used. |
Archive a used key when it should leave the list. Deactivate it when you may turn it back on soon. A key with request history cannot be deleted. The history is retained for billing and auditing.
Rotating a key
Create the replacement
Go to API → API keys in your dashboard, click New API key, and give it the same category and request limits under a new name.
Deploy the new key
Update the environment variable in every system that uses the old key and redeploy.
Deactivate the old key
Set the old key to inactive, or archive it to hide it from the list. This blocks any remaining requests without removing its history.
Error reference
| Error | Status | Cause |
|---|---|---|
Invalid API Key | 401 | Key not found or malformed |
No X-API-Key header or Authorization token provided | 401 | No key in the request |
Inactive API Key | 401 | Key is disabled |
Expired API Key | 401 | Key has passed its expiry date |
Rate limit exceeded for the API key: quota … | 401 | Per-key rolling quota reached |
Rate limit exceeded: You've exceeded the … rate limit on your subscription | 401 | Plan-level per-second or per-minute cap |
Forbidden: IP temporarily blocked | 403 | 10 failed authentications in a minute from the same IP. The block lasts 5 minutes |
See also: Best Practices for security guidelines and Glossary for term definitions.