Voice API
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 with the VoxML
Conferenceverb - Call duration and timeout controls
- Fallback URLs for error handling
Answering-machine detection is not available — see Make a Call.
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 Prerequisites
- The
fromnumber must be an active TryVox number owned by your account — one you purchased. Numbers you own elsewhere cannot be used asfrom. - Your account's KYC must be approved. Every
/v1/voicerequest returns403 KYC_REQUIREDuntil it is. - Pay-as-you-go calls need an available wallet balance of at least ₹10, inbound and outbound; otherwise the call is rejected with
402 INSUFFICIENT_BALANCE. A call already in progress is not cut off when the balance runs out: it is billed in full, the balance can go negative, and new calls resume once a recharge brings it back to ₹10.
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
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