Start web call (secret key)
Start a browser-based call using a secret API key (oi_sk_…). Returns a
server_url and participant_token — pass these to the Web SDK’s
oi.start({ token, serverUrl }) to connect the browser.
Use this endpoint from your server when you want full control over when
and how calls are started (e.g. gating behind auth, rate limiting, logging).
Never call this from front-end code — use POST /v1/web-calls/token with a
publishable key instead.
Documentation Index
Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use api_key from POST /v1/api-keys
Body
Per-call template variables interpolated into the agent prompt.
{ "customer_name": "Suman" }Free-form key/value pairs stored on the call record. Useful for passing CRM IDs, session data, or any context you want to retrieve later via GET /v1/calls/{id}.
{
"crm_contact_id": "ct_123",
"source": "website"
}Response
Created
"call_abc123"
"web"
queued, initiated, in_progress, completed, failed Internal room name
"web-2006ff52"
WebSocket server URL (wss://voice.oneinbox.ai). Your frontend connects here using participant_token.
"wss://voice.oneinbox.ai"
"eyJhbGciOiJIUzI1NiJ9..."