Create web call token (publishable key)
Create a short-lived participant token using a publishable key (oi_pk_…).
This is the endpoint the Web SDK (@oneinbox/web-sdk) calls internally when you use
new OneInbox("oi_pk_…") and oi.start(agentId). You do not need to call this
endpoint directly — the SDK handles it for you.
If you are building a custom client or need to mint a token from the browser without the SDK, use this endpoint with your publishable key.
Publishable keys are created in the OneInbox dashboard under Settings → Publishable Keys.
They are scoped to web calls only and locked to the origins you register.
Never use a secret key (oi_sk_…) in front-end code.
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 a publishable key (oi_pk_…) created in the OneInbox dashboard under Settings → Publishable Keys. Safe to embed in front-end code — scoped to web calls only and locked to registered origins.
Body
Request body for POST /v1/web-calls/token. Used by the Web SDK when starting a
call with a publishable key. Identical to WebCallRequest but without overrides.
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..."