Skip to content
Docs
GitHub

Create call

Preview

Start a voice call on a session (the chat microphone). Uses the settings of a voice channel of the session’s agent.

Public APIEverruns Cloud and self-hosted Platform

POST/v1/sessions/{session_id}/voice/calls

See authentication for credentials and permissions.

session_id
required
string
Media typeapplication/json

Request body for a session voice call (the chat microphone).

object
channel_id

Voice channel whose settings the call uses (appchan_…). Must belong to the session’s agent. When omitted, the agent’s first voice channel is used, or the defaults when it has none.

string | null

Example

appchan_01933b5a000070008000000000000001
provider_id

Realtime provider binding: the public id of the provider connection that serves the call (prov_…). When omitted, the org’s default (or single) realtime provider is used.

string | null

Example

prov_01h…
sdp
required

The browser’s WebRTC SDP offer.

string

Responses

200Realtime WebRTC call started

Realtime WebRTC call started

Media typeapplication/json

A started voice call.

object
answer_sdp
required

SDP answer that completes the browser’s WebRTC handshake.

string
channel_id

Voice channel whose settings the call uses, when there is one.

string | null
expires_at
required

When the call’s lease expires (RFC 3339).

string format: date-time
model
required

Speech model.

string
provider
required

Realtime provider type serving the call (e.g. openai).

string
provider_call_id

Provider-side call identifier.

string | null
voice
required

Provider voice.

string
voice_connection_id
required

Prefixed public identifier of the voice connection.

string

Example generated

{
"answer_sdp": "example",
"channel_id": "example",
"expires_at": "2026-04-15T12:00:00Z",
"model": "example",
"provider": "example",
"provider_call_id": "example",
"voice": "example",
"voice_connection_id": "example"
}