Overview
The Vatel AI API lets you manage agents, generate session tokens for calls, and run real-time voice sessions over WebSockets. Use the REST API for configuration and session auth, and the WebSocket API for streaming audio and events during a call.Base URLs
Authentication
REST endpoints use Bearer token authentication with your organization API key. Send it in theAuthorization header:
Region pinning
Requests are routed by geographic proximity by default. Sendx-vatel-region to pin a request to a specific region. See Region pinning.
REST API
Use the REST API to read your organization, list allowed LLMs and TTS voices, manage agents, index knowledge documents, list calls, recordings, and usage, import Twilio numbers, configure SIP trunks and per-trunk agent assignments, and mint session tokens for embedding or SDK-based calls. Agent configuration and the conversation flow are versioned separately. An agent version stores prompt, model, voice, and related settings.PATCH /v1/agents/{id} writes those fields to the default agent version. A graph version stores the conversation-flow nodes. Publish a graph version to make it the active flow. Outbound dial accepts an optional callbackUrl that receives each call status as JSON.
Organization
Resolve the organization for your API key.
Agents
CRUD agents, manage agent versions and graph versions, and place outbound calls via Twilio or SIP trunk.
Documents
Index text, URLs, and files, then read and edit the chunks in your knowledge base.
Calls
Paginated call history, single call details, WAV recording download, and call view tokens.
Usage logs
Per-request provider charges for calls and chats, including marked-up cost.
Session token
Short-lived JWT for a given agent; required for WebSocket sessions and embed auth.
SIP trunks
Trunk CRUD and agent assignments for inbound routing.
LLMs
List allowed
provider/model strings for agent LLM fields.Voices
Aggregated TTS voice catalog from configured providers.
Twilio numbers
List, import, and relabel imported phone numbers.
WebSocket API
The WebSocket API is used for real-time call sessions: the server sends session, audio, and transcript events; the client sends input audio.Connection
Single bidirectional channel. Send audio and recieve agent responses.
Quick reference
Use the endpoint pages in the API reference tab and the in-doc playground to try requests and inspect schemas.

