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 agentGET
/v1/agents/{id}Retrieve agent configurationPOST
/v1/sessionsStart a real-time voice sessionPOST
/v1/toolsRegister a custom toolGET
/v1/analyticsFetch usage and quality metricsPOST
/v1/tests/runExecute a hallucination test suitePOST
/v1/experimentsCreate an A/B experimentWebSocket
Connect to wss://api.vapi.click/v1/sessions/streamfor bidirectional real-time audio and events. See the documentation for the full event schema.