v3
latestOpenAPI 3.1.02026-08-087684214.2 KBcalls
Create Web Call
Create a browser-based web call.
Returns an access token that your frontend passes to the AgentPhone Web SDK (agentphone-web-sdk) to start the call in the browser. The token expires 30 seconds after creation.
Flow:
- Validates the agent belongs to your account
- Creates a web call and returns an access token
- Your client calls webClient.startCall({ accessToken }) to connect
- Call lifecycle (transcripts, webhooks) works the same as phone calls
post/v1/calls/web
Request body
Response
Successful Response
{"stackTrail":"paths:/v1/calls/web:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}