Resources

Error code index

A single reference for the error codes the API returns. Codes appear in error.code (envelope) or as HTTP status codes.

Request validation

CodeMeaningFix
40001Request could not be routed (missing method)Use a valid endpoint path from the reference.
40002Request could not be routed (missing resource)Check the endpoint path.
40003Invalid method in the requestUse a standard HTTP method on a valid path.
40004Unrecognized resource in the pathCheck the endpoint path against the reference.
40005Invalid JSON bodySend well-formed JSON with Content-Type: application/json.

Authentication

CodeMeaningFix
5200Missing DB connection (non-public)Check your tenant slug is valid.
5202Invalid app credential paramsSend app_id, app_secret, namespace.
5203App auth failed (no match)Wrong secret, or key not active/published.
5204Invalid token paramsSend token, user_id, tenant.
5205Token not found / mismatchRe-issue the user token.
5206General auth failedNo auth method succeeded.
5207Token expired / revokedRefresh the user token.
5208Database error (token auth)Retry; contact support with request_id.
5209Rate limit exceeded (auth attempts)Back off - 10 attempts/min per IP.

HTTP status codes

StatusMeaning
200Success (check success in the body - some legacy endpoints return 200 on failure).
400Bad request - invalid or missing parameter.
401Unauthorized - authentication failed.
403Forbidden - authenticated but not allowed.
404Not found.
412Precondition failed (conditional request).
429Too many requests - honor Retry-After.
500Internal server error - retry, then contact support with request_id.
503Service unavailable.
Note
Every error response includes a request_id. Include it in support requests so we can trace the exact call.