Errors & Rate Limits
Error responses
Errors come back with an HTTP status code that says what went wrong. The body usually carries an error or a message string, so read both. Some errors add details or other keys, such as unauthorized_fields. A 404 or 405 may have an empty {} body, and an unknown path returns an HTML 404 page, so branch on the status code, not the body.
For example, deleting a test that is still open returns 403 with:
{
"message": "Close the test for submissions first."
}
| Status | Meaning |
|---|---|
400 | The request is malformed, for example a missing fields parameter, an unknown filter, or a PATCH without updated_at or override_concurrency_check. |
401 | The API key is missing, wrong or revoked. |
403 | The request isn't allowed. The plan isn't valid: it isn't Elite, your balance is negative, or the subscription isn't active or in trial (fix it on the Billing page). Or the key is read-only, the endpoint isn't available to API keys, or you don't have access to that record. Or fields names a column (or expand a relation) that doesn't exist or you can't read; the body lists the allowed ones. Or the record's current state doesn't allow it, for example deleting a test that is still open or already deleted. The body says which. |
404 | No record with that id or label. |
409 | The record changed since you read it. Read it again and retry with its new updated_at. See Update a test. |
429 | Too many requests. Wait and retry, as described below. |
5xx | Something went wrong on our side. Retry after a short wait. |
Don't send a Content-Type header on a request without a body (GET, DELETE). It returns 400 with an empty body.
Rate limits
Rate limits are being rolled out. Until then, responses may carry no RateLimit-* headers and won't return 429. Build your integration to handle both: read the headers only when they are present, and still handle 429.
Requests are counted per user, over a one-minute and a one-hour window. Your dashboard and your API key share the same count. The limits depend on your plan:
| Plan | Per minute | Per hour |
|---|---|---|
| Elite | 1,000 | 50,000 |
| Premium | 600 | 20,000 |
| Standard | 300 | 10,000 |
| Trial and pay-as-you-go | 300 | 5,000 |
| Lapsed plan | 120 | 2,000 |
Every counted response carries headers describing the window closest to its limit:
| Header | Meaning |
|---|---|
RateLimit-Limit | Requests allowed in the window |
RateLimit-Remaining | Requests left in the window |
RateLimit-Reset | Seconds until the window resets |
Past the limit, the API returns 429 with a Retry-After header (seconds) and a body like:
{
"message": "Too many requests",
"details": { "scope": "user", "window": "minute", "limit": 1000, "retry_after_seconds": 12 }
}
Retrying
- On
429, wait forRetry-Afterseconds, then retry. - On
5xxor a network error, retry with exponential back-off (for example 1, 2, 4, 8 seconds). - Don't retry
400,401,403or404unchanged: the same request gets the same answer. - Page through lists with
limit=100andcursorinstead of many small requests.