Skip to main content
POST
Create a Web voice or simulator session

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer sempera_sk_... Each operation names the one scope it needs. Scopes, key kinds and roles are in the Authentication guide.

Headers

Idempotency-Key
string

Replays the stored answer for a retry of the same request; 409 for a different request under the same key.

Maximum string length: 255

Body

application/json
agent_id
string
required
channel
enum<string>
default:web_voice
Available options:
web_voice,
simulator
end_user_id
string

Your identifier for the person; becomes the room participant identity.

language
enum<string>
Available options:
en,
fr,
es
voice_id
string
synthetic_caller
string

simulator only: ten digits.

Response

Created

id
string
required
object
any
required
transport
string
required

Names the realtime media transport that url and token are for. Treat it as an opaque label: connect with the web client the guide describes (/docs/web-sdk.md), not with a Sempera protocol.

url
string
required

The realtime signaling URL (WebSocket).

token
string
required

Short-lived, single-room token for the browser. Never an API key.

expires_at
string<date-time>
required
agent_id
string
channel
string
status
any
voice
any
speech_recognition
any
voice_source
any
note
any