Create a Web Call
Create a browser-based DialNexa web call session.
/webcalls. Legacy unversioned /webcall integrations can continue during the transition window, but new v1 integrations should use /webcalls.
When to use this
- Website embeds: let a visitor start a voice conversation from a page.
- Product demos: launch a temporary web call without dialing a phone number.
- Support flows: collect web visitor context and pass it to the agent as metadata.
Related endpoints
- Terminate a Web Call: end an active web call session.
- Create an Outbound Call: create a phone-based outbound call.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
API key for authentication (alternative to JWT token)
Body
Phone number to call (must include country code). Format: +[country code][phone number]
"+1234567890"
Agent ID to use for the call. Must belong to the authenticated organization.
"ag_12345678901234"
Metadata for the call including customer information and any additional context. This data will be available during the call for personalization.
Specific agent version number to use (optional). If provided, must be a published version. If not provided, will use the latest published version.
2
Response
Webcall session created successfully
Unique session ID for the webcall. This is the call log ID that can be used to track the webcall session.
"mf0x4riongyz6h"
Agent ID used for the webcall
"0e709fd2-8339-46fa-8e28-ca8c66e00f43"
Call ID from Nexa Speech API
"mf0x4riongyz6h"
Current state of the webcall session
"created"
WebSocket URL for connecting to the webcall session
"/webcall/ws/mf0x4riongyz6h"
Success message from the API
"Webcall session created successfully"