Skip to content
Documentation
Hevia for developers

Errors

One error shape for every endpoint, with stable codes.

Every error of /api/v1 has the same shape:

JSON
{ "error": { "code": "insufficient_scope", "message": "The API key does not have the scope this endpoint needs." } }

code is stable and meant for your program; message is for people and may change; field names the parameter, header or body field when one is at fault.

CodeStatusMeaning
unauthorized401Missing, malformed, unknown, revoked or expired key or token. Every unknown key gets the same answer.
forbidden403Not allowed (reserved; not used by v1 endpoints today).
insufficient_scope403The key or token does not have the scope of the endpoint.
plan_required403The business's package does not include the API (Scale) or the feature of the endpoint.
rate_limited429More than 120 requests in 60 seconds for this key, or too many from your address. Wait for Retry-After seconds.
not_found404The id does not exist in this business (or is not an id at all).
invalid_request400, 422A parameter, header or body field is invalid; field names it when known.
payload_too_large413The body is larger than the endpoint accepts.
conflict409The same Idempotency-Key was used with a different request, or the first request with it is still running.

Other endpoints

  • OAuth (/api/oauth/*) answers RFC 6749 errors: { "error": "invalid_grant", "error_description": "…" }.
  • MCP (/api/mcp) answers JSON-RPC errors: { "jsonrpc": "2.0", "id": …, "error": { "code", "message" } }.

What to do

StatusRetry?
400, 404, 413, 422No. Fix the request.
401, 403No. Check key, scope and package.
409After a moment, with the same key (a request with it is still running) or with a new key (the body changed).
429Yes, after Retry-After seconds, with jitter.
5xx, network errorsYes, with backoff. Writes only with an Idempotency-Key.

Generated from the product's own registries, so the reference matches the API.