This feature requires the Web Calls API to be enabled for your account. Contact support if you need access.
Overview
The Web Calls API allows you to create real-time voice conversations with Sawt AI agents directly in the browser or mobile apps. This is perfect for:- Customer support widgets - Embed voice AI in your website
- Web applications - Add voice capabilities to your app
- Kiosks & terminals - Deploy voice AI on any web-capable device
API Endpoint
Authentication
This endpoint requires a Web Calls API key. Generate one from your Settings page under API Keys.Bearer your-web-calls-api-key
application/json
Request Body
The UUID of the agent to connect with. Must be an agent belonging to your company.
Optional user reference identifier (max 128 characters). Useful for tracking which user initiated the call. Will be sanitized to alphanumeric characters, dashes, underscores, and dots.
Optional metadata object to pass to the agent. Supports the following fields:
Example Request
Example Request
Response
The LiveKit server URL to connect to
The name of the LiveKit room created for this session
JWT token for the participant to join the room. Valid for 15 minutes.
The identity assigned to the participant
Example Response
Example Response
Error Handling
Error message if the request fails
Common Errors
| Status | Error | Description |
|---|---|---|
| 400 | Invalid agentId format | The agentId must be a valid UUID |
| 403 | Web Calls API is not enabled | Contact support to enable this feature |
| 403 | Access denied to this agent | API key doesn’t have permission for this agent |
| 404 | Agent not found | Agent doesn’t exist or belongs to another company |
| 500 | Service not configured | LiveKit is not configured on the server |
Example Error Response
Example Error Response