Skip to navigation

Error codes

Every code this API returns, from the public error registry.

Each code has one HTTP status and one retry class. details holds only the fields listed here for the code. The spec’s x-error-catalog is the public list; the status, retry class and message come from the public error registry locked by CONTRACT.lock. How to act on a code is described on Errors.

The catalog has 67 codes.

CodeHTTPRetryPublic detailsMessageDeclared byNote
invalid_request400nofield, fields, allowedThe request is not valid.Every operation
unauthenticated401nononeAuthentication is required.Every operation
forbidden403norequired_role, required_capabilitiesThis action is not permitted.Every operationThe key lacks a capability. details.required_capabilities lists every missing capability, including conditional ones.
organization_paused403nononeCalls are stopped for this organization. Contact team@rasen.ai.createAgentSession, createCallCalls from this organization are stopped by a staff pause, so nothing was started or dialled. Do not retry: the organization owner contacts team@rasen.ai.
sip_trunk_not_enabled403nononeSIP trunking is not enabled for this workspace.connectSipTrunk, createSipInboundConnection, createSipOutboundTrunk, deleteSipInboundConnection, deleteSipOutboundTrunk, disconnectSipTrunk, importSipNumber, regenerateSipAddress, updateSipInboundConnection, updateSipOutboundTrunkSIP trunking is not enabled for this workspace.
workspace_archived403nononeThis workspace is archived.Every operationThe workspace is archived, so a key can neither read nor write. The organisation owner can restore it.
workspace_concurrency_unallotted403nononeNo concurrency is allotted to this workspace. Check your organization settings page.createAgentSession, createCallNo concurrency is allotted to this workspace, so nothing was started or dialled. An organization Owner or Admin sets the share in organization settings.
workspace_view_only403nononeThis workspace is view-only on your plan.77 operationsThe workspace is view-only, so a key can read and cannot write.
not_found404nononeThe resource was not found.111 operations
agent_archived409noagent_idThe agent has been archived.29 operationsThe agent is archived. Edits, validation, publication and rollback are refused. Call start uses agent_not_live with details.state=archived.
agent_deleting409nononeThe agent is being deleted.unarchiveAgentThe agent’s permanent deletion has started; it cannot be unarchived. When the deletion finishes the agent reads as not_found.
agent_name_taken409noagent_id, nameAn agent already uses this name.createAgent, updateAgent
agent_not_assigned409noagent_idThe agent has no assigned checkpoint.createCall
agent_not_live409noagent_id, stateThe agent is not live.addPhoneNumberOutboundAgent, createAgentSession, createCall, setPhoneNumberInboundAgent
agent_not_published409nononeThe agent has not been published.14 operations
already_terminal409nononeThe operation has already ended.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThe operation has already ended.
archive_blocked409noreasonThe agent cannot be archived while work is running.archiveAgentThe agent cannot be archived while work is running. details.reason is an open vocabulary listed per operation in x-archive-blocked-reasons. Retry with a new Idempotency-Key after the work ends.
call_not_admittable409noreasonsThe call cannot be admitted.createAgentSession, createCall
carrier_action_required409nocarrier, capabilityThe carrier needs a setup step.provisionPhoneNumber, removePhoneNumberInboundAgent, setPhoneNumberInboundAgent
carrier_capability_unsupported409nocarrier, capabilityThe carrier does not support this.provisionPhoneNumber, setPhoneNumberInboundAgent
carrier_not_activated409nocarrierThe carrier is not available yet.connectSipTrunk, createSipInboundConnection, createSipOutboundTrunk, deleteSipInboundConnection, deleteSipOutboundTrunk, disconnectSipTrunk, importSipNumber, regenerateSipAddress, updateSipInboundConnection, updateSipOutboundTrunkThe carrier is not available yet.
conflict409noreason, current_live_version_id, numbers, destinationsThe request conflicts with the current state.57 operationsState conflict. details.reason (open vocabulary, listed per operation in x-conflict-reasons) says which recovery applies.
credential_unavailable409nononeThe credential is unavailable.15 operations
deletion_blocked409noreasonThe item cannot be deleted while work is running or a hold applies.archiveKnowledgeSource, deleteKnowledgeSource, deleteSecretDeletion or removal is refused while a current reference or retention hold applies. details.reason is an open vocabulary listed per operation in x-deletion-reasons. For Knowledge, snapshot_reference and published_reference require retained content; archive the source instead. Legacy draft knowledge fields do not block Knowledge removal. Secret deletion remains refused while its draft or retained publication references exist, where draft_reference still applies.
draft_conflict409noexpected_etag, current_etag, changed_atThe draft has changed since it was read.13 operationsStale revision on an agent, draft, variable, tool, MCP server or publication token. Re-read, re-apply your intended change and retry with the new ETag. Never blindly retry with a fresh ETag. details.expected_etag is the If-Match you sent and details.current_etag is the current ETag, both opaque strings. A publication-token mismatch uses the same shape, even when only a bound tool, MCP server, secret version or direct-library source changed.
idempotency_in_progress409retry_afternoneThe same request is still in progress.72 operationsThe same intent is still running. Wait for Retry-After, then resend the identical request with the same key and original If-Match.
idempotency_key_expired409noidempotency_keyThe idempotency key has expired.62 operations
idempotency_key_reused409noidempotency_key, operation, original_result_kind, original_stateThe idempotency key was used for a different request.72 operationsThis key was used for a different request. Fix the caller; never retry a changed intent with the old key.
idempotency_result_gone409noidempotency_key, operation, result_kind, result_refThe original result is no longer available.69 operations
inbound_claimed_elsewhere409nononeThis number already answers inbound calls in another workspace.Not declared by a single operation
knowledge_snapshot_unavailable409nosnapshot_idThe knowledge index is not available.publishAgent, updateAgentDraft, validateAgentDraft
mcp_auth_mode_unsupported409nomode, supportedThis authentication mode is not supported.createMcpServer, discoverMcpTools, replaceMcpServer
mcp_schema_drift409notool, kindThe remote server no longer matches the published tools.createAgentTool, publishAgent, replaceAgentTool, validateAgentTool
mcp_tool_not_allowed409notoolThe tool is not on the allowlist.createAgentTool, replaceAgentTool, validateAgentTool
no_ready_placement409nomodality, fallback_modeThere is no ready placement.createAgentSession, createCall
no_recipients409nononeThere are no recipients.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThere are no recipients.
not_dialing409nononeThe campaign is not dialing.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThe campaign is not dialing.
not_draft409nononeThe resource is not a draft.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThe resource is not a draft.
not_paused409nostateThe campaign is not paused.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThe campaign is not paused.
not_planned409nononeThe operation has not been planned.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaignThe operation has not been planned.
number_in_use409noreasonThe number is still in use.removeImportedPhoneNumber
number_not_outbound409nononeThe number does not support outbound calls.addPhoneNumberOutboundAgent, admitCampaign, cancelCampaign, createCall, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadCampaign
provider_account_exists409nononeThe provider account already exists.createTelephonyConnection, deleteTelephonyConnection, importPhoneNumbers, removeImportedPhoneNumber, replaceTelephonyConnection
resource_key_conflict409noexisting_id, resource_typeA resource with this resource key already exists.createAgent, createAgentKnowledgeSource, createAgentTool, createKnowledgeSource, createMcpServer, createSecret, replaceAgentTool, replaceMcpServer, uploadAgentKnowledgeSource, uploadKnowledgeSourceA resource of this type already has this resource_key. details.existing_id identifies it; read it and reconcile. details.resource_type is one of agent, mcp_server, knowledge_source or secret (open vocabulary).
telephony_not_connected409nomodeTelephony is not connected.27 operations
tool_name_conflict409noname, countTwo tools use the same name.createAgentTool, replaceAgentTool, validateAgentTool
tool_pre_call_exists409nononeThis agent already has a tool that runs before the call.createAgentTool, replaceAgentTool, validateAgentToolThe agent already has a before-call tool. Replace or delete it, or make this tool during_call.
workspace_unavailable409nononeThe workspace is unavailable.75 operations
payload_too_large413nobytes, limit_bytesThe payload exceeds the size limit.40 operations
unsupported_media_type415nocontent_type, expectedThe media type is not supported.admitCampaign, cancelCampaign, createCampaign, pauseCampaign, planCampaign, resumeCampaign, retryCampaign, startCampaign, suppressCampaignDestination, uploadAgentKnowledgeSource, uploadCampaign, uploadKnowledgeSource
outbound_destination_refused422nononeThe destination is not permitted.21 operations
tool_body_on_get_or_delete422nofield, index, nameA GET or DELETE tool cannot send a body. Move its body values to the query or the path, and its effect id to a header.createAgentTool, publishAgent, replaceAgentTool, validateAgentToolA GET or DELETE tool sends no body. Move its body values to the query or the path, and its effect id to a header. At publish, name is the tool to edit.
tool_pre_call_bounds422nofield, minimum, maximumA limit of the tool is outside the bounds for a tool that runs before the call.createAgentTool, replaceAgentTool, validateAgentToolA limit of a before-call tool is outside its bounds: deadline_ms 500 to 10000, max_response_bytes at most 4096, wait_for_response true. details.field names the limit.
tool_pre_call_llm_parameter422nofield, indexA tool that runs before the call cannot have a parameter that the model fills.createAgentTool, replaceAgentTool, validateAgentToolA before-call tool has a parameter with source model. details.field is definition.parameters and details.index the parameter. Use constant or dynamic_variable.
tool_pre_call_name422nofieldThe name of a tool that runs before the call cannot be a variable name.createAgentTool, publishAgent, replaceAgentTool, validateAgentToolThe name of a before-call tool is an agent variable, agent_name or language, or starts with system__. At publish, a variable of the draft has the before-call tool’s name. Rename the tool or the variable.
tool_pre_call_side_effect422nofieldA tool that runs before the call must be a lookup that is sent once.createAgentTool, replaceAgentTool, validateAgentToolA before-call tool must have side_effect none and retry_posture none. details.field names the field.
revision_required428noheaderThe request requires a revision.44 operations
quota_exceeded429retry_aftermeter, period, period_end, limit, used, requested, available, unitThe quota has been exceeded.Every operation
rate_limited429retry_afterlimit, scope, window_sThe request rate limit has been reached.Every operation
workspace_concurrency_full429retry_afteractive, limit, reasonThe concurrency limit for this workspace is hit. Check your organization settings page.createAgentSession, createCallThe workspace’s share, or its organization’s total, is full, so nothing was started or dialled. Retry after Retry-After.
internal_error500yesrequest_idThe request could not be completed.Every operationFor an operation that takes an Idempotency-Key, a client retry with the same key is safe: the server replays the stored outcome if the first attempt took effect; if the first attempt had no effect, the retry performs the operation once. Never retry with a new key.
provider_unavailable502noreasonThe provider is unavailable.createCall, createTelephonyConnection, deleteTelephonyConnection, endCall, importPhoneNumbers, listAvailablePhoneNumbers, provisionPhoneNumber, removeImportedPhoneNumber, removePhoneNumberInboundAgent, replaceTelephonyConnection, setPhoneNumberInboundAgentFor an operation that takes an Idempotency-Key, a client retry with the same key is safe: the server replays the stored outcome if the first attempt took effect; if the first attempt had no effect, the retry performs the operation once. Never retry with a new key. details.reason (optional, open vocabulary) names a known local cause: sip_trunk_not_ready on provisionPhoneNumber means the workspace’s SIP trunk setup is not ready and no carrier was contacted; read getSipTrunkSetup, wait for state ready (or retry a failed setup with connectSipTrunk), then retry with a new Idempotency-Key.
admission_busy503retry_afterwaited_msThe admission service is busy.createAgentSession, createCallAdmission was busy for this organization and could not decide the call in time, so nothing was started or dialled. Wait at least Retry-After seconds, then send the identical request with the same Idempotency-Key.
at_capacity503retry_afteractive, class, limit, reasonThere is no capacity available.Every operationNo line is free for the call, so nothing was started or dialled. details.reason workspace_limit: the workspace already runs details.active calls at the same time and its limit is details.limit (default 3); end a call or wait for one to finish. Any other details.reason, including one this document does not name: the platform is at capacity. The refusal is not stored: wait at least Retry-After seconds, then send the identical request with the same Idempotency-Key, and it is admitted afresh. Back off between attempts. Never retry with a new key.
call_orchestrator_unavailable503retry_afternoneNo orchestrator answers.Every operationFor an operation that takes an Idempotency-Key, a client retry with the same key is safe: the server replays the stored outcome if the first attempt took effect; if the first attempt had no effect, the retry performs the operation once. Never retry with a new key.
ingress_unconfigured503nononeThe ingress is not configured.connectSipTrunk, createSipInboundConnection, createSipOutboundTrunk, deleteSipInboundConnection, deleteSipOutboundTrunk, disconnectSipTrunk, importSipNumber, regenerateSipAddress, updateSipInboundConnection, updateSipOutboundTrunkThe ingress is not configured.
unavailable503retry_afterdependencyThe service is unavailable.Every operationFor an operation that takes an Idempotency-Key, a client retry with the same key is safe: the server replays the stored outcome if the first attempt took effect; if the first attempt had no effect, the retry performs the operation once. Never retry with a new key.