LeenOpsDocs
Developer

Voice API Reference

Use voice agent and conversation endpoints.

Important endpoints

MethodPathPurpose
GET/POST/api/voice/agentsList or create voice agents.
GET/PATCH/api/voice/agents/:id/configManage agent configuration.
GET/PATCH/POST/api/voice/agents/:id/bridgeConfigure and test bridge integrations.
GET/POST/api/voice/conversationsManage conversations.
GET/POST/api/voice/sessionsManage voice sessions.
POST/api/voice/eventBridge voice events into LeenOps workflows.
POST/api/voice/synthesizeSynthesize speech when enabled.

These are LeenOps Platform BFF routes. The standalone voice service owns internal /voice/* worker routes for STT, TTS, LiveKit/Pipecat sessions, and Telnyx media streams; trusted backends call those with X-Worker-Secret and workspace scoping.

Phone webhooks such as /api/voice/telnyx-conv-webhook and /api/voice/twilio-webhook are provider-facing routes. Protect them with provider validation and avoid exposing them as general-purpose public APIs.