Voice API
Make and receive phone calls, stream audio, and control calls programmatically.
The TryVox Voice API enables you to make and receive phone calls, stream real-time audio to LLMs, and control calls programmatically.
Capabilities
The Voice API provides the following features:
Outbound and Inbound Calls
- Make outbound calls to any phone number
- Receive inbound calls via phone numbers you own
- Configure webhooks for call lifecycle events
Real-time Audio Streaming
- Stream audio to and from LLMs in real-time
- Build conversational AI voice agents
- Process audio with custom logic
Call Control
- Transfer calls to other numbers
- Record calls with configurable options
- Play audio files during calls
- Convert text to speech
- Send DTMF tones
Advanced Features
- Multi-party conference calling
- Answering machine detection
- Call duration and timeout controls
- Fallback URLs for error handling
Getting Started
All Voice API endpoints are available at:
https://api.tryvox.io/v1/voice/accounts/{auth_id}/...Authentication is HTTP Basic with your Auth ID and Auth Token. With curl:
curl -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
https://api.tryvox.io/v1/voice/accounts/$TRYVOX_AUTH_ID/callsSee Authentication for the full credential format.
Outbound Call Prerequisite
Before you can place an outbound call, the from number must be a verified caller ID on your account. Inbound calls work without this step — only outbound is gated.
API Reference
Make a Call
Initiate an outbound voice call
List Calls
Retrieve a list of calls
Get Call Details
Retrieve details for a specific call
Hangup Call
Terminate an active call
Call Actions
Perform actions on active calls
Conferences
Create and manage conference calls
Verified Caller IDs
Register from numbers for outbound
Call Lifecycle
- Initiate - Call is created via API or inbound to your number
- Ringing - Optional
ring_urlwebhook is called - Answered -
answer_urlwebhook is called, returns VoxML instructions - Active - Call is in progress, actions can be performed
- Ended - Optional
hangup_urlwebhook is called with call details