Skip to main content
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
The API returns LiveKit connection credentials that you can use with the LiveKit Client SDKs to establish a WebRTC voice session with your Sawt AI agent.

API Endpoint

Authentication

This endpoint requires a Web Calls API key. Generate one from your Settings page under API Keys.
required
Bearer your-web-calls-api-key
required
application/json

Request Body

string
required
The UUID of the agent to connect with. Must be an agent belonging to your company.
string
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.
object
Optional metadata object to pass to the agent. Supports the following fields:

Response

string
required
The LiveKit server URL to connect to
string
required
The name of the LiveKit room created for this session
string
required
JWT token for the participant to join the room. Valid for 15 minutes.
string
required
The identity assigned to the participant

Error Handling

string
Error message if the request fails

Common Errors

Client Integration

Once you receive the connection credentials, use the LiveKit Client SDK to establish the voice session with your Sawt AI agent. See the LiveKit Client SDK documentation for platform-specific guides on JavaScript, React, iOS, Android, Flutter, and more.

Phone Calls

Make outbound phone calls with Sawt AI agents

Webhooks

Receive real-time call events and transcripts