Skip to navigation
Changes to the Rasen Developer API, newest first.

Each entry names the operations, fields and behaviour that changed, and what you need to do, if anything. Operations and fields scheduled for removal are listed on Deprecations.

Response enums and other open vocabularies can gain values without an entry here: treat an unknown value as unknown, never as an error or as success.

The production base URL moves to https://api.rasen.ai/v1

Rasen serves the production API at https://api.rasen.ai/v1. The base URL https://api.v2.rasen.ai/v1 is deprecated, with a shutdown date of 2027-02-11. Both hosts serve the same API, with the same keys, operations and data, and the paths after /v1 are the same.

What to do: Change the base URL of your integration to https://api.rasen.ai/v1 before 2027-02-11. See Deprecations.

FeatureUpdateDeprecationAgentsCallsTelephony

Version 1.14.0: calls that the agent ended report agent_hangup

The API version moves from 1.13.0 to 1.14.0. end_reason on Call and CallListItem reports two values more precisely:

  • A phone or agent-session call that the agent ended reports agent_hangup. Before 1.14.0, many of these calls reported completed.
  • An answered call whose line failed reports line_dropped.

completed means that the call ended and nothing says who ended it.

FeatureUpdateDeprecationAgentsCallsTelephony

Find a voicemail with end_reason

A call that reached a voicemail reports end_reason voicemail_detected: the agent’s voicemail detection found a mailbox, or the carrier reported a machine. dial_outcome can still be answered, because the carrier connected the call before the mailbox answered. getCall, listCalls, searchCalls and the Call in webhook payloads carry end_reason.

What to do: Read end_reason, not dial_outcome, to find a call that reached a voicemail. See Build and publish an agent.

FeatureUpdateDeprecationAgentsCallsTelephony

Version 1.13.0: read why a SIP trunk setup failed

The API version moves from 1.12.0 to 1.13.0. getSipTrunkSetup (GET /telephony/sip-trunk) and the sip.setup events of streamSipTrunkSetup (GET /telephony/sip-trunk/stream) add two nullable fields to the setup:

  • failed_step: the setup step that failed, or the address regeneration step that stopped.
  • failure_reason: a safe code for why the last setup job failed: provider_refused, provider_conflict, provider_unavailable, provider_auth_failed, provider_rate_limited, sip_trunk_not_ready or internal_error. It never holds provider text.
FeatureUpdateDeprecationAgentsCallsTelephony

Version 1.12.0: add a tool that runs before an inbound call

The API version moves from 1.11.0 to 1.12.0. A webhook tool can run before an inbound call: send "timing": "pre_call" to createAgentTool (POST /agents/{agent_id}/tools), replaceAgentTool (PUT /agents/{agent_id}/tools/{tool_id}) or validateAgentTool (POST /agents/{agent_id}/tools/validate). The platform sends its request one time while the phone rings, and puts the response in the system prompt as data. An agent has at most one before-call tool. An omitted timing on create is during_call. The dynamic variable system__caller_id gives the tool the caller’s number.

FeatureUpdateDeprecationAgentsCallsTelephony

Version 1.12.0: tool runs and outcomes include timing

listCallToolOutcomes (GET /calls/{call_id}/tool-outcomes) and listAgentToolRuns (GET /agents/{agent_id}/tools/{tool_id}/runs) add the required field timing to each item: pre_call for the run of the agent’s before-call tool, and during_call for every other run. A pre_call run has no model arguments.

What to do: Keep unknown timing values. See Read tool call logs.

FeatureUpdateDeprecationAgentsCallsTelephony

Version 1.12.0: workspace and call-start refusals

New codes refuse a request for the state of the workspace or the organization:

  • workspace_archived (403): the workspace is archived, so a key can neither read nor write.
  • workspace_view_only (403): the workspace is view-only, so a key can read and cannot write.
  • organization_paused (403), on createCall (POST /calls) and createAgentSession (POST /agent-sessions): calls from the organization are stopped by a staff pause.
  • workspace_concurrency_unallotted (403) and workspace_concurrency_full (429): the workspace has no share of concurrent calls, or its share is full.
  • admission_busy (503), on createCall and createAgentSession: admission could not decide the call in time.
FeatureUpdateDeprecationAgentsCallsTelephony

Read the request and result of each tool run

New operation: listAgentToolRuns (GET /agents/{agent_id}/tools/{tool_id}/runs). It lists the runs of one webhook or MCP tool across the agent’s calls, newest first. Each run carries the filtered arguments and result, the registered reason, error_message, the webhook http_status and latency_ms. Filter by call_id, by state, and by start and end. It requires calls.read.

FeatureUpdateAgentsCalls

Tool outcomes include latency_ms

listCallToolOutcomes (GET /calls/{call_id}/tool-outcomes) adds the required field latency_ms to each item: the run time in milliseconds, or null until the run has a result. Each outcome id equals the id of its run in listAgentToolRuns, which holds the request and response payloads.

What to do: Read latency_ms as nullable. To read a run’s payloads, call listAgentToolRuns with the outcome’s tool_id and the call_id.

FeatureUpdateAgentsCalls

Choose what the agent does on a voicemail

Agent settings add voicemail_action (hang_up or leave_message) and voicemail_message, at most 500 characters. With leave_message, the agent speaks the message when voicemail detection finds a voicemail, then ends the call. A blank message with leave_message is refused with invalid_request on voicemail_message.

createAgent (POST /agents), updateAgentDraft (PATCH /agents/{agent_id}/draft) and validateAgentDraft (POST /agents/{agent_id}/draft/validate) accept both fields. Every answer that holds draft or version settings includes them: getAgentDraft, updateAgentDraft, publishAgent, listAgentVersions, getAgentVersion, deleteAgentTool and deleteAgentVariable.

FeatureUpdateAgentsCalls

Version 1.10.0: connect and manage SIP trunks

The API version moves from 1.9.0 to 1.10.0. New SIP setup operations:

OperationPath
connectSipTrunkPOST /telephony/sip-trunk
disconnectSipTrunkDELETE /telephony/sip-trunk
createSipInboundConnectionPOST /telephony/sip-trunk/inbound-connections
updateSipInboundConnectionPATCH /telephony/sip-trunk/inbound-connections/{connection_id}
deleteSipInboundConnectionDELETE /telephony/sip-trunk/inbound-connections/{connection_id}
createSipOutboundTrunkPOST /telephony/sip-trunk/outbound-trunks
updateSipOutboundTrunkPATCH /telephony/sip-trunk/outbound-trunks/{trunk_id}
deleteSipOutboundTrunkDELETE /telephony/sip-trunk/outbound-trunks/{trunk_id}
importSipNumberPOST /telephony/sip-trunk/phone-numbers/import
regenerateSipAddressPOST /telephony/sip-trunk/address/regenerate
streamSipTrunkSetupGET /telephony/sip-trunk/stream
FeatureUpdateTelephonyAgentsCalls

Version 1.9.0: read the SIP trunk setup

The API version moves from 1.8.0 to 1.9.0. New operation: getSipTrunkSetup (GET /telephony/sip-trunk), which requires numbers.assign. It reads the setup state, the SIP address of each region, and the inbound connections and outbound trunks. It never returns a trunk username or password; a trunk shows has_password instead.

In 1.9.0 this was the only SIP setup operation; version 1.10.0 adds the writes and the stream.

FeatureUpdateTelephonyAgentsCalls

Version 1.9.0: confirm the carrier's transfer step

Connection responses include transfer facts: availability, mechanism and any required setup action. New operation setTelephonyConnectionTransferFlow (PUT /telephony/connections/{connection_id}/transfer-flow) confirms or withdraws completion of the carrier’s transfer step. It requires numbers.assign, Idempotency-Key and the connection’s If-Match. It records confirmation without calling the carrier.

FeatureUpdateTelephonyAgentsCalls

Version 1.9.0: read transfer outcomes in call results

getCall (GET /calls/{call_id}), listCalls (GET /calls) and searchCalls (POST /calls/search) include transfer_destination_label and transfer_duration_ms. Webhook payloads containing a Call include these fields too; the envelope’s api_version names the API version whose schemas built the payload. The label describes the last destination when the call ends with transferred or transfer_failed, without exposing its number or address. Duration is the carrier-reported time connected to that destination; it is null if no transfer connected or the time is unreported.

FeatureUpdateTelephonyAgentsCalls

Version 1.8.0 addition: named call-transfer destinations and SIP trunk connections

These changes reached the API while its version was still 1.8.0, after the 1.8.0 entry of 2026-10-26. The version number did not change.

Agent transfer policy supports destinations with labels, selection instructions, targets and ring timeouts. Targets are E.164 numbers, SIP trunk extensions, or SIP URIs, subject to the call’s carrier and region. The list replaces as a whole; keep each destination’s returned id when editing it. The single-number destination_number shape remains supported; a write cannot contain both shapes.

FeatureUpdateTelephonyAgentsCalls

Version 1.8.0: webhooks for call events

The API version moves from 1.7.0 to 1.8.0. Nine new operations register HTTPS endpoints that receive call events:

  • POST /webhook-endpoints (createWebhookEndpoint) and GET /webhook-endpoints (listWebhookEndpoints)
  • GET /webhook-endpoints/{endpoint_id} (getWebhookEndpoint), PUT /webhook-endpoints/{endpoint_id} (replaceWebhookEndpoint) and DELETE /webhook-endpoints/{endpoint_id} (deleteWebhookEndpoint)
  • POST /webhook-endpoints/{endpoint_id}/rotate-secret (rotateWebhookSigningSecret)
  • POST /webhook-endpoints/{endpoint_id}/test (sendWebhookTestEvent)
  • GET /webhook-endpoints/{endpoint_id}/deliveries (listWebhookDeliveries)
  • POST /webhook-deliveries/{delivery_id}/resend (resendWebhookDelivery)
FeatureDeprecationUpdateWebhooksAgentsKnowledgeCalls

Archive and restore an agent

New operations: POST /agents/{agent_id}/archive (archiveAgent) and POST /agents/{agent_id}/unarchive (unarchiveAgent). Both require agents.write. Archive stops the agent’s calls, releases its phone numbers and starts a 14-day window. At archive_deadline the agent is deleted for good. Unarchive returns the agent to its state before the archive.

  • Agent gains archived_at and archive_deadline. Both are null unless state is archived.
  • New error codes: 409 archive_blocked (work of the agent is running; details.reason says which) and 409 agent_deleting (the deletion has started).
  • Unarchive of an agent that is not archived answers 409 conflict with details.reason: not_archived.
FeatureDeprecationUpdateWebhooksAgentsKnowledgeCalls

Knowledge snapshot operations deprecated

createKnowledgeSnapshot, listKnowledgeSnapshots and getKnowledgeSnapshot are marked deprecated: true. They keep their request and response shapes and keep working. Publication does not need or read an explicit snapshot: it freezes the sources of the agent’s library itself. createKnowledgeSnapshot can refuse a source that reports ready with 409 conflict and reason: sources_not_ready.

FeatureDeprecationUpdateWebhooksAgentsKnowledgeCalls

Usable Knowledge sources report ready

A source that publication uses as bounded prompt context used to report state: fallback. Every source read and list now reports it as ready with failure: null, and a state=ready filter also matches it. A state=fallback filter is still accepted. failure is null unless state is failed.

KnowledgeSource gains an optional, nullable next_step. The answer to an add sets it to the action that makes the source usable in calls, for example “Publish the agent to use this source in calls.” It is null on other answers.

FeatureDeprecationUpdateWebhooksAgentsKnowledgeCalls

at_capacity says whose limit was reached

503 at_capacity from createCall and createAgentSession gains the details active and reason. With reason: workspace_limit, the workspace already runs details.active calls at the same time, and its limit is details.limit (3 by default). Any other reason means that the platform is at capacity. Nothing was started or dialled.

What to do: For workspace_limit, end a call or wait for one to finish. In both cases, wait at least Retry-After seconds, then send the identical request with the same Idempotency-Key. Never retry with a new key. See Idempotency and replay.

FeatureDeprecationUpdateWebhooksAgentsKnowledgeCalls