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."
}
StatusMeaning
400The request is malformed, for example a missing fields parameter, an unknown filter, or a PATCH without updated_at or override_concurrency_check.
401The API key is missing, wrong or revoked.
403The 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.
404No record with that id or label.
409The record changed since you read it. Read it again and retry with its new updated_at. See Update a test.
429Too many requests. Wait and retry, as described below.
5xxSomething 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

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:

PlanPer minutePer hour
Elite1,00050,000
Premium60020,000
Standard30010,000
Trial and pay-as-you-go3005,000
Lapsed plan1202,000

Every counted response carries headers describing the window closest to its limit:

HeaderMeaning
RateLimit-LimitRequests allowed in the window
RateLimit-RemainingRequests left in the window
RateLimit-ResetSeconds 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 for Retry-After seconds, then retry.
  • On 5xx or a network error, retry with exponential back-off (for example 1, 2, 4, 8 seconds).
  • Don't retry 400, 401, 403 or 404 unchanged: the same request gets the same answer.
  • Page through lists with limit=100 and cursor instead of many small requests.