> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rasen.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rasen.ai/_mcp/server.

# Changelog

> Find each change to the Rasen Developer API by date, with the operations it touches and what you need to do.

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](/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.

## November 14, 2026

This date covers the production base URL, the `voicemail_detected` end reason and API versions
1.12.0, 1.13.0 and 1.14.0, newest first. A section about an API version names that version.

## 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](/deprecations).

## 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.

`getCall` (`GET /calls/{call_id}`), `listCalls` (`GET /calls`), `searchCalls`
(`POST /calls/search`) and the `Call` in webhook payloads carry the field.

**What to do:** If your integration reads `completed` as "the agent finished the call", also accept
`agent_hangup`. Handle `line_dropped`, and keep an `end_reason` value you do not know.

## 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](/guides/agents#voicemail).

## 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.

Each SIP operation adds `failure_reason`, with the same codes, for an operation in state `failed`.
`connectSipTrunk` (`POST /telephony/sip-trunk`) is the explicit retry of a failed setup.

`provisionPhoneNumber` (`POST /phone-numbers/{number_id}/provision`) refuses a SIP trunk number
while the setup is not ready, with `502 provider_unavailable` and `details.reason`
`sip_trunk_not_ready`. It contacts no carrier.

**What to do:** Read `failed_step` and `failure_reason` as nullable, and keep unknown values. Wait
for `state: ready` before you provision a SIP number. See
[Connect a SIP trunk](/guides/sip-trunk).

## 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.

A before-call tool takes only `constant` and `dynamic_variable` parameters, `side_effect` and
`retry_posture` `none`, a `deadline_ms` from 500 to 10000 (3000 when omitted) and a
`max_response_bytes` of at most 4096. New codes refuse a tool that breaks these rules:
`tool_pre_call_exists`, `tool_pre_call_llm_parameter`, `tool_pre_call_side_effect`,
`tool_pre_call_bounds` and `tool_pre_call_name`. `publishAgent`
(`POST /agents/{agent_id}/publish`) can answer `422` with `tool_pre_call_name` and
`tool_body_on_get_or_delete`.

A `GET` or `DELETE` tool sends no body: `tool_body_on_get_or_delete` refuses body parameters on
such a tool on every tool write, validation and publish.

Tool reads and agent versions add `timing` to each webhook tool. A tool saved before this version
reads `during_call`.

**What to do:** Nothing for existing tools. If a `GET` or `DELETE` tool has body parameters, move
them to the query or the path before you publish again. To add a before-call tool, follow
[Add a before-call tool](/guides/before-call-tool).

## 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](/guides/tool-call-logs).

## 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.

A refused call start started and dialled nothing.

**What to do:** Follow the `retry` class of each code. See
[Workspace and call-start refusals](/concepts/errors#workspace-and-call-start-refusals).

## November 4, 2026

The API version moves from 1.10.0 to 1.11.0.

## 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`.

A run never holds a credential, a resolved header, a URL path or query, or a provider exception.
`arguments` and `result` are cut at 32,768 bytes, and are `null` for a run recorded while their
capture was off.

**What to do:** Nothing for existing integrations. To read tool payloads, follow
[Read tool call logs](/guides/tool-call-logs).

## 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`.

## 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`.

An agent that never set `voicemail_action` reads `hang_up`: on a voicemail, it ends the call at
once.

**What to do:** Nothing for existing integrations. To leave a message, see
[Build and publish an agent](/guides/agents#voicemail).

## October 29, 2026

This date covers three steps of the API: additions to 1.8.0 that kept its version number, then
version 1.9.0, then version 1.10.0. Each change below names the version that added it, newest
first.

## 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:

| Operation                    | Path                                                              |
| ---------------------------- | ----------------------------------------------------------------- |
| `connectSipTrunk`            | `POST /telephony/sip-trunk`                                       |
| `disconnectSipTrunk`         | `DELETE /telephony/sip-trunk`                                     |
| `createSipInboundConnection` | `POST /telephony/sip-trunk/inbound-connections`                   |
| `updateSipInboundConnection` | `PATCH /telephony/sip-trunk/inbound-connections/{connection_id}`  |
| `deleteSipInboundConnection` | `DELETE /telephony/sip-trunk/inbound-connections/{connection_id}` |
| `createSipOutboundTrunk`     | `POST /telephony/sip-trunk/outbound-trunks`                       |
| `updateSipOutboundTrunk`     | `PATCH /telephony/sip-trunk/outbound-trunks/{trunk_id}`           |
| `deleteSipOutboundTrunk`     | `DELETE /telephony/sip-trunk/outbound-trunks/{trunk_id}`          |
| `importSipNumber`            | `POST /telephony/sip-trunk/phone-numbers/import`                  |
| `regenerateSipAddress`       | `POST /telephony/sip-trunk/address/regenerate`                    |
| `streamSipTrunkSetup`        | `GET /telephony/sip-trunk/stream`                                 |

All require `numbers.assign`. Mutations require `Idempotency-Key`; edits, deletes and address regeneration also require `If-Match`.
`getSipTrunkSetup` (`GET /telephony/sip-trunk`) now sends an `ETag`: the setup revision to send as `If-Match` on the next setup edit.
The stream sends read-only `sip.setup` snapshots with setup and recent operation states.
A `202` response accepts work; inspect its operation state before treating it as complete.

The public errors add `carrier_not_activated`, `sip_trunk_not_enabled` and `ingress_unconfigured`.
SIP conflicts include `sip_trunk_connected`, `sip_job_running`, `in_use`, `trunk_exists` and `number_bound`.

**What to do:** Follow [Connect a SIP trunk](/guides/sip-trunk) for setup, samples, operation tracking and conflict handling.

## 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.

**What to do:** Read the setup to find the SIP address to give your carrier; see
[Connect a SIP trunk](/guides/sip-trunk).

## 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.

**What to do:** Read a connection's `transfer` facts and confirm required carrier setup before publication; see [Configure call transfers](/guides/call-transfers).

## 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.

**What to do:** Read the fields as nullable and follow the [transfer verification guidance](/guides/call-transfers#verify).

## 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.

`createAgent` (`POST /agents`), `updateAgentDraft` (`PATCH /agents/{agent_id}/draft`) and `validateAgentDraft` (`POST /agents/{agent_id}/draft/validate`) accept the policy.
Draft and version reads include the destination list, and `publishAgent` (`POST /agents/{agent_id}/publish`) freezes it for new calls.

Connection writes also accept `provider: sip_trunk` in `createTelephonyConnection` (`POST /telephony/connections`) and `replaceTelephonyConnection` (`PUT /telephony/connections/{connection_id}`).

**What to do:** Use [Configure call transfers](/guides/call-transfers) to configure destinations before publication.

## October 26, 2026

## 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`)

They require the new capability `webhooks.manage`, which `GET /context` lists. An endpoint
subscribes to `call.completed`, `call.failed` and `call.analyzed`. Each request is signed with the
endpoint's secret in the `webhook-signature` header. Delivery is at least once, with a stable
`webhook-id`, and has no ordering guarantee. A workspace has at most 10 endpoints that are not
deleted.

**What to do:** Nothing for existing integrations. To receive call events, see
[Receive call events with webhooks](/guides/webhooks) and [Webhook events](/reference/webhook-events).

## 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`.

**What to do:** Nothing for existing integrations. If you parse `Agent` with a strict schema, allow
the two new fields. See [Archive and restore an agent](/guides/archive-agent).

## 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`.

**What to do:** Do not add the snapshot operations to a new integration. Add sources to the agent
library and publish the agent. See [Deprecations](/deprecations) and
[Knowledge](/guides/knowledge).

## 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.

**What to do:** Wait for `ready` or `failed`. Remove code that waits for `fallback`. See
[Deprecations](/deprecations).

## `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](/concepts/idempotency).

## October 23, 2026

## Follow a call's transcript live

New operation: `GET /calls/{call_id}/transcript/live` (`streamLiveCallTranscript`). It requires
`calls.read` and returns Server-Sent Events of a call's transcript lines while the call runs. It
works for every call: dialled, inbound, agent sessions and test calls. Open it any time after the
call is created; it waits for the call to connect.

```bash
curl -N "$RASEN_API_BASE/calls/$CALL_ID/transcript/live" \
  -H "Authorization: Bearer $RASEN_API_KEY"
```

* Each `transcript.message` event carries `call_id`, `segment_id`, `speaker` (`agent` or
  `customer`), `text`, `final`, `start_ms` and `end_ms`.
* Every payload of one line has the same `segment_id`. Show the newest payload of each line, but
  never replace a `final: true` line with a later `final: false` one.
* Once the call is over, `transcript.end` arrives with the call's `state`, and the stream closes.
* Save the last `id:` value and send it as `Last-Event-ID` to resume. Comment frames are heartbeats.
  One connection lasts at most 55 minutes, and it shares the open-stream limits of
  `streamCallTranscript`.
* Live lines show the call as it runs and are not its record: the last words of a call can be
  missing. After the call, read the verified transcript.

**What to do:** Nothing for existing integrations. To show a call as it runs, see
[Follow a call's transcript live](/guides/live-transcript).

## Resource key conflicts take precedence over name conflicts

A create that repeats both the name and the `resource_key` of an existing agent, MCP server,
Knowledge source or secret now answers `409 resource_key_conflict` with `details.existing_id`.
It previously answered with a name conflict, so a client that lost a create response and retried
with a new `Idempotency-Key` could not find the resource it had made. When the key is free and only
the name is taken, the name conflict is unchanged. See [Resource keys](/concepts/resource-keys).

**What to do:** On `409 resource_key_conflict`, read the resource with `details.existing_id`
instead of creating it again.

## Transcript stream limit answers `429`

When a key or workspace already had the most transcript streams open, `streamCallTranscript`
answered with a server error. It now answers `429 rate_limited` with `Retry-After`, the same as
`streamLiveCallTranscript`.

**What to do:** On `429 rate_limited`, wait the seconds in `Retry-After`, then reconnect with
`Last-Event-ID`.

## October 19, 2026

## Agent sessions on your own call leg

New operation: `POST /agent-sessions` (`createAgentSession`). Run a published agent on a call that
your own switch, carrier, dialer or application already holds. Rasen places, answers and routes no
telephone call and needs no phone number: the answer is a media WebSocket for the call, and the
agent talks on it.

* The smallest request is `{"agent_id": "agent_…"}`. Media defaults to `binary` transport, `pcm16`
  encoding and 8000 Hz. `mulaw` is accepted at 8000 Hz only.
* Connect to `websocket_url` exactly as returned and send audio before `expires_at`, 120 seconds
  after admission. The URL is a credential: do not log it.
* The answer's `call_id` works with every call operation: read, end, transcript stream, recording
  and results.
* `expected_version_id`, `dynamic_variables` and `metadata` follow the same rules as
  `createCall`. `409 conflict` with `reason: live_version_mismatch` is also returned here.
* Agent sessions share the call-start rate limit and the workspace's concurrent-call quota with
  `createCall`.

**What to do:** Nothing for existing integrations. To use it, see
[Run an agent on a call leg you already own](/guides/calls#run-an-agent-on-a-call-leg-you-already-own).

## Clearing a variable's default

A variable write with `"value": null` clears the stored default and keeps the variable declared,
with its description and sensitivity. Each call then supplies the value in `dynamic_variables`.
See [Build and publish an agent](/guides/agents#5-set-a-variable-default).

**What to do:** Nothing for existing integrations. To clear a default, write `"value": null`; never
copy a redacted null from a read into a write.

## October 14, 2026

## Carrier dial outcome on calls

`Call` and `CallListItem` gain two nullable fields that say what the carrier reported for a call it
dialled:

* `dial_outcome`: `dialing` until the carrier reports, then its latest report, for example
  `answered`, `no_answer`, `busy`, `voicemail`, `rejected`, `invalid_number` or `failed`. It is an
  open vocabulary: preserve a value you do not recognise, and never treat it as success.
* `dial_sip_code`: the SIP response code, when the carrier gave one (100 to 699).

Both are null for calls no carrier dialled: inbound, browser and test calls. A call that ended with
`end_reason: never_connected` now says why. See [Read a call](/guides/calls#read-a-call).

**What to do:** Nothing for existing integrations. Preserve a `dial_outcome` value you do not
recognise, and never treat it as success.

## Single-brace variable warning

A variable name in single braces in the prompt or an opening message (`{customer_name}`) is filled
in like `{{customer_name}}` when the call has that variable. Validation now answers a
`single_brace_variable` warning for a single-brace name the agent does not declare and that is not a
built-in. Warnings never make a draft invalid or block a publish. At most 20 such warnings are
answered. See [Build and publish an agent](/guides/agents#6-validate-the-draft).

**What to do:** Nothing for existing integrations. Read the `warnings` of `validateAgentDraft`, and
declare on the agent each variable that a single-brace name should fill.

## `languages` removed from `Voice`

The `Voice` schema no longer has a `languages` field. It was always an empty array, because no
language is recorded per voice. See [Deprecations](/deprecations).

**What to do:** Remove any code that reads `Voice.languages`.

## October 12, 2026

## List voices before your first agent exists

`agent_id` is now optional on `GET /voices` (`listVoices`). Without it, the list is the catalogue of
the voice model a new agent starts on, so you can pick a voice and create the agent with it in one
request, through `initial_draft.voice`.

* The create checks the voice against the voice model the new agent gets. An unsupported voice is
  refused with `400 invalid_request` and `details.field = "voice"`, and no agent is kept.
* To change the voice of an existing agent, keep listing with its `agent_id`: an existing agent
  keeps the voice model it is assigned.
* A `next_cursor` from one list does not page the other.

**What to do:** Nothing for existing integrations. To create an agent with its voice in one
request, see [Choose a voice](/guides/agents#1-choose-a-voice).