Developer
Voice API Reference
Use voice agent and conversation endpoints.
Important endpoints
| Method | Path | Purpose |
|---|---|---|
| GET/POST | /api/voice/agents | List or create voice agents. |
| GET/PATCH | /api/voice/agents/:id/config | Manage agent configuration. |
| GET/PATCH/POST | /api/voice/agents/:id/bridge | Configure and test bridge integrations. |
| GET/POST | /api/voice/conversations | Manage conversations. |
| GET/POST | /api/voice/sessions | Manage voice sessions. |
| POST | /api/voice/event | Bridge voice events into LeenOps workflows. |
| POST | /api/voice/synthesize | Synthesize 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.