API Reference

Base URL: https://api.vapi.click/v1

Authentication

All requests require an API key in the Authorization header:Authorization: Bearer YOUR_API_KEY

Endpoints

POST/v1/agentsCreate a new voice agent
GET/v1/agents/{id}Retrieve agent configuration
POST/v1/sessionsStart a real-time voice session
POST/v1/toolsRegister a custom tool
GET/v1/analyticsFetch usage and quality metrics
POST/v1/tests/runExecute a hallucination test suite
POST/v1/experimentsCreate an A/B experiment

WebSocket

Connect to wss://api.vapi.click/v1/sessions/streamfor bidirectional real-time audio and events. See the documentation for the full event schema.