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.
Overview
A web call is a call session you create with the OneInbox API. It powers browser-based voice on your backend. OneInbox returnscall_id, server_url, and participant_token when you create a web call.
Prerequisites: a working agent_id from Quickstart.
What you get back
| Field | Purpose |
|---|---|
call_id | Identify the session — poll with GET /v1/calls/<call_id> |
server_url | WebSocket URL (e.g. wss://voice.oneinbox.ai) — pass to your frontend |
participant_token | Short-lived client token — pass to your frontend, not your API key |
2. Pass per-call context (optional)
Use Reference in your system prompt:
variables to inject context into the agent prompt:The customer name is {{customer_name}}.3. Override voice or model per call (optional)
Change TTS or LLM for a single call without updating the agent:See Start web call and Voices for all override fields.
Security
Return onlyserver_url and participant_token to your frontend — never your API key.
Web call vs phone call
| Web call | Phone call | |
|---|---|---|
| Channel | Browser / web app | PSTN via telephony carrier |
| Phone number | Not required | Required |
| Telephony integration | Not required | Required |
| Guide | This page | Phone calls |
Troubleshooting
| Problem | Fix |
|---|---|
401 | Check Authorization: Bearer <api_key> |
404 on agent_id | Re-copy agent_id from Quickstart step 2 |
| Tokens not working in browser | Create a fresh web call — tokens are short-lived |
Next steps
- Start web call — full API reference
- Quickstart — first agent + web call walkthrough
- Phone calls — call real phone numbers