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

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