Skip to main content
POST
/
v2
/
call-agent
/
generate-web-call-token
Generate Web Call Token
curl --request POST \
  --url https://api.example.com/v2/call-agent/generate-web-call-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "partner_id": "<string>",
  "phone_number": "<string>",
  "text_mode": false
}
'
{
  "access_token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request schema for generating a web call token.

partner_id
string
required

Partner ID for the call

phone_number
string | null

Phone number to associate with the call

text_mode
boolean
default:false

Whether to enable text mode for the call

Response

Successful Response

Response schema for web call token.

access_token
string
required

LiveKit access token for the web call