calls
Create Web Call
Create a browser-based web call.
Returns connection details that your frontend passes to the AgentPhone Web SDK (agentphone-web-sdk >= 0.2.0) to start the call in the browser. expiresAt is the access token's expiry as Unix epoch milliseconds. id identifies the AgentPhone call; callId identifies the media connection.
Flow:
- Validates the agent belongs to your account
- Creates a web call and returns its connection details
- Your client calls webClient.startCall({ accessToken, callId, transport, iceServers })
- Call lifecycle (transcripts, webhooks) works the same as phone calls
post/v1/calls/web
Request
- Base URLhttps://api.agentphone.ai
- URLhttps://api.agentphone.ai/v1/calls/web
- AuthHTTP bearer
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 42 revisions of this API.