Changes to the Rasen Developer API, newest first.
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 tobinarytransport,pcm16encoding and 8000 Hz.mulawis accepted at 8000 Hz only. - Connect to
websocket_urlexactly as returned and send audio beforeexpires_at, 120 seconds after admission. The URL is a credential: do not log it. - The answer’s
call_idworks with every call operation: read, end, transcript stream, recording and results. expected_version_id,dynamic_variablesandmetadatafollow the same rules ascreateCall.409 conflictwithreason: live_version_mismatchis 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.
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.
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.