ReferenceHTTP API
Errors
Error bodies, status codes, and when to retry.
A failed request answers with a 4xx or 5xx status and a JSON body. The body shape depends on the endpoint family.
Error bodies
| Endpoints | Shape |
|---|---|
| Telemetry, catalog snapshot, overrides, skills, jobs, intent graph | { "error": "..." }, plus optional fields |
GET /v1/catalog, GET /v2/catalog | { "error": { "code": "...", "message": "..." } } |
| Embeddings, Tool Picker | { "error": { "message": "...", "type": "..." } }, the OpenAI envelope |
In the first shape, error is a sentence on the telemetry and snapshot endpoints, and a machine code on the skills, jobs and intent-graph endpoints. Optional fields:
reason: a finer code, for examplemissing_scope,version_conflictorper_source.message: a sentence to show or log.scope: the scope a403is missing.issuesordetails: what failed validation.
{ "error": "conflict", "reason": "version_conflict" }The catalog code is one of unauthorized, forbidden, invalid_request, not_found or unavailable.
The OpenAI type is one of invalid_request_error, permission_error, insufficient_quota, rate_limit_error or api_error.
Status codes
| Status | Cause | Fix |
|---|---|---|
400 | The body or a query parameter is malformed or fails validation. | Fix the request. Read issues, details or message. |
401 | No bearer key, or the key is unknown, revoked or expired. | Send a valid key. See Authentication. |
402 | Out of Embeddings or Tool Picker credit, or the key's workspace no longer exists. | Top up, or use Tool Picker's free instant mode. |
403 | The key does not have the scope the endpoint needs. On skill writes, quota_exceeded: the plan's skill limit is reached. | Use a key with the scope, or upgrade the plan. |
404 | The resource does not exist in the key's project. | Check the ID and the key's project. |
409 | A version or name conflict, a stale intent graph, or Tool Picker on a project with no synced tools. | Re-read and retry, or sync your catalog first. |
410 | The endpoint was removed. | Stop calling it. See Removed endpoints. |
413 | The body, the decompressed body, or the item count is over the limit. | Send smaller batches. |
415 | Wrong Content-Type, or a Content-Encoding other than gzip or deflate. | Send the content type the endpoint accepts. |
422 | Tool Picker could not decide the query. | Rephrase it, or use instant. |
429 | A rate limit, or the plan's monthly event limit on POST /v1/traces. | Wait Retry-After seconds. For the monthly limit, upgrade in Billing. |
500 | The Platform failed to store the data. | Retry with backoff. |
502 | An upstream model provider failed. | Retry with backoff. |
503 | The feature is not available on this server, or its database is not configured. | Retry later, or check your self-hosted configuration. |
504 | A Tool Picker pick ran past 45 seconds. | Retry, or use precise on a large catalog. |
Retries
- A
429from a rate limit carriesRetry-Afterin seconds. Wait that long, then retry. - The monthly event limit
429onPOST /v1/traceshas noRetry-After. Retrying does not help until the period resets or the plan changes. - Retry
500,502,503and504with exponential backoff. - Do not retry other 4xx statuses without a change to the request or the key.
Runtime events are idempotent: a retried event with the same event_id counts as a duplicate, not a second event.
Every response carries x-request-id. Quote it when you report a problem.