Skip to main content
POST
/
v1
/
web-calls
/
token
Create Web Call Token
curl --request POST \
  --url https://api.oneinbox.ai/v1/web-calls/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "variables": {},
  "metadata": {}
}
'
{
  "id": "<string>",
  "agent_id": "<string>",
  "type": "<string>",
  "status": "<string>",
  "room_name": "<string>",
  "server_url": "<string>",
  "participant_token": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Browser-initiated web call, authed with a publishable key.

Deliberately a subset of WebCallCreate: NO provider overrides — an untrusted client must not be able to pick the LLM/STT/TTS model or voice (cost + safety). Server-side config wins.

agent_id
string<uuid>
required
variables
Variables · object
metadata
Metadata · object

Response

Successful Response

id
string
required
agent_id
string
required
type
string
required
status
string
required
room_name
string
required
server_url
string
required
participant_token
string
required
created_at
string<date-time>
required