Skip to Content
REST APIErrors

Errors

Every error has the same body, with an HTTP status to match:

{ "error": { "code": "insufficient_scope", "message": "This credential lacks the data:query scope.", "request_id": "req_a7439ced058a41e98c7edd47c5ed772d", "details": { "required_scope": "data:query" } } }
  • code is stable: branch on it, not on message.
  • message is for people and may change.
  • request_id matches the X-Request-Id header. Quote it when you contact support.
  • details holds extra facts for some codes, such as retry_after_seconds or required_scope, and is otherwise empty.

Codes

StatusCodeWhat to do
400invalid_requestFix the request: details names the field. Retrying unchanged fails again.
401invalid_credentialsCheck the key. It may be mistyped, revoked or expired.
402billing_inactiveThe organization's subscription needs attention in the TeroAI app.
403access_expiredYour access to TeroAI has ended. Renew it in the TeroAI app.
403api_access_disabledThe organization's API access is off. Write to [email protected].
403feature_disabledThe feature is not enabled for the organization, or its product does not offer it: Site Selection (SSIS) answers have no maps. details.feature names it.
403insufficient_scopeUse a key with the scope in details.required_scope.
403product_not_entitledThe dataset belongs to a product the organization does not have. GET /v1/schemas lists the ones it has.
404not_foundThe ID is wrong, or the item belongs to another user or organization.
409conversation_limit_reachedThe conversation has 10 questions. Branch it or start a new one: see the conversation limit guide.
409schema_mismatchA follow-up always uses its conversation's dataset. Drop schema, or start a new conversation.
413payload_too_largeThe request body is over 1 MB.
422map_unavailableThe answer's rows cannot be drawn on a map.
429rate_limitedWait details.retry_after_seconds, or the Retry-After header, then retry.
429token_limit_exceededThe monthly token quota is used up. It resets at details.resets_at; reading still works.
500internal_errorRetry. If it persists, write to support with the request_id.
503upstream_timeoutNo answer in time. Stream the answer or ask a narrower question; message may say what to narrow. Retry after Retry-After.
503upstream_unavailableThe analysis service failed. Retry after a short wait.

Retrying

Retry only rate_limited, upstream_unavailable, upstream_timeout and internal_error, with a growing delay. Other codes fail again until the request or the account changes.

A streamed answer reports a failure as a final error event carrying the same body; see Long-running requests.

Last updated on