Errors

Every error type and error code the Heyllo API returns, with its HTTP status.

Every error response has the envelope described in Errors. The doc_url in an error links to the code's row on this page.

Error types

TypeHTTP statusMeaning
invalid_request_error400The request is malformed or not permitted by your contract. Upload and body size errors use 413.
authentication_error401The API key is missing or not valid.
permission_error403The key can see the object but may not perform this action.
not_found_error404The object does not exist or is outside the key's reach.
conflict_error409The object is in a state that does not allow this action, or another operation on it is running.
idempotency_error422The Idempotency-Key was reused for a different request.
rate_limit_error429Too many requests or concurrent replies. Retry after Retry-After.
quota_exceeded_error429A monthly quota or a capacity limit is reached. Retrying will not help until the limit changes.
api_error500Something failed on Heyllo's side. Some codes use 502 or 503. Retry with backoff.

Error codes

Branch on code. New codes can be added; treat an unknown code by its type and HTTP status.

CodeHTTPMeaning
parameter_invalid400A field is missing, has the wrong type or is out of range. param names the field.
json_invalid400The request body is not valid JSON.
content_type_invalid400The body was not sent with Content-Type: application/json.
payload_too_large413The JSON body is over 1 MB, or uploaded files are over 25 MB in total.
api_version_invalid400The Heyllo-Version header names a version that does not exist.
idempotency_key_required400This endpoint requires an Idempotency-Key header.
idempotency_key_invalid400The Idempotency-Key is not 1 to 255 printable ASCII characters.
cursor_invalid400The pagination cursor is not valid for this list.
period_invalid400The usage period is not in YYYY-MM form.
model_not_allowed400The model is not enabled for your organisation or is not available.
tool_not_allowed400The tool (web_search or send_email) is not enabled for your organisation.
domain_invalid400An entry in allowed_domains is not a valid hostname.
url_invalid400The webhook URL is not https, points to a private or local address, contains credentials or uses a disallowed port.
scope_not_allowed400Workspace- or bot-bound keys cannot hold workspaces:write or keys:manage.
bot_workspace_mismatch400The bot given for a new key is not in the given workspace.
ip_allowlist_invalid400An ip_allowlist entry is not an IP address or CIDR range.
expires_at_invalid400expires_at is not in the future.
multipart_invalid400The upload is not valid multipart/form-data.
files_missing400No files were sent in the files field.
too_many_files400More than 10 files were sent in one request.
file_type_unsupported400A file has an unsupported type. See Knowledge for the supported types.
knowledge_rejected400The knowledge content was rejected during ingestion. Check its size and format.
invalid_api_key401The key is missing, malformed, unknown, expired or revoked, or its organisation is not active. Deliberately generic.
missing_scope403The key does not have the scope this endpoint requires.
ip_not_allowed403The key has an IP allowlist and the request came from another address.
scope_escalation403A new key can only have scopes the creating key has.
key_bound403Workspace- or bot-bound keys cannot create or delete workspaces or change a workspace's status.
key_bound_to_bot403The key is limited to one bot and cannot create bots.
workspace_suspended403The bot or conversation belongs to a suspended workspace.
feature_disabled403Webhooks are not enabled for your organisation.
resource_missing404The object does not exist, or is outside the key's organisation, environment or binding.
request_in_progress409A request with the same Idempotency-Key is still running.
conversation_busy409A reply is already being generated in this conversation. Retry once it finishes.
workspace_exists409Another workspace already has this external_id.
handoff_active409A human agent is already handling this conversation.
handoff_inactive409The conversation has no open handoff, or the handoff has not been accepted yet.
key_revoked409A revoked key cannot be rotated.
idempotency_key_reused422The Idempotency-Key was already used with a different method, path or body.
rate_limited429Too many requests, or too many failed authentication attempts. Wait for Retry-After.
concurrency_limit429Your organisation is generating too many replies at once. Wait for Retry-After.
monthly_message_limit429Your organisation has used its monthly message allowance.
monthly_cost_limit429Your organisation has reached its monthly model spend limit.
monthly_ingest_limit429Your organisation has used its monthly ingestion allowance, or this content would exceed it.
test_token_limit429Test keys have used the monthly test token allowance set for your organisation. Live keys are not affected.
workspace_limit429Your organisation already has its maximum number of workspaces.
bot_limit429The workspace already has its maximum number of bots.
endpoint_limit429The environment already has 20 webhook endpoints.
internal_error500Something failed on Heyllo's side. Retry with backoff and quote the request_id if it persists.
upstream_unavailable503A Heyllo service is temporarily unavailable. Retry with backoff. Returned as 502 when a synchronous reply fails this way.
generation_failed502The assistant could not produce a reply. Sent as a stream error event, or as 502 in sync mode.
turn_timeout502The reply did not finish within the 120-second turn limit. Sent as a stream error event, or as 502 in sync mode.
api_disabled503The API is temporarily unavailable.