Generate Access Token
Generate a LiveKit access token for a web-based voice session.GET /calls/generate-token
Authentication: JWT cookie or API key
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
phone | string | ✅ | Agent phone number to connect to |
id | string | ✅ | Unique session identifier |
Make Outbound Call
Create a new outbound call from an agent to a target phone number.POST /calls/outbound_call
Authentication: JWT cookie or API key
Get Call Logs
Retrieve paginated call logs with optional filters.GET /calls/logs
Authentication: JWT cookie or API key
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
page_size | integer | 25 | Items per page |
call_type | string | — | Filter: “phone” or “web” |
agent_id | string | — | Filter by specific agent |
start_date | string | — | ISO 8601 date filter (start) |
end_date | string | — | ISO 8601 date filter (end) |
Get Single Call Log
GET /calls/{call_log_id}
Returns the full call log with all fields (same schema as list item above).
Export Call Logs (CSV)
Download call logs as a CSV file.GET /calls/export-csv
Authentication: JWT cookie or API key
Query Parameters: Same filters as GET /calls/logs
Error Responses
| Status | Detail | Cause |
|---|---|---|
400 | "Invalid phone number format" | Phone number missing or invalid |
401 | "Invalid or missing token" | Authentication failed |
404 | "Call log not found" | Call log doesn’t exist in workspace |
404 | "Agent not found" | Agent phone number not registered |