Place a call
One request dials a number and streams the call audio to your agent.
Place an outbound call from your Vonyx number. Once the call connects, its audio streams to and from your agent over a WebSocket.
Example
Request
| Prop | Type | Default |
|---|---|---|
did | string | - |
phone_number | string | - |
websocket_url | string | - |
sample_rate | 8000 | 16000 | - |
webhook_url | string | - |
ws_audio_format | 'audio/x-l16' | 'audio/x-mulaw' | audio/x-l16 |
ws_protocol | 'elevenlabs' | - |
Any other field is rejected with 400.
Response
Keep data.call_id. Status webhooks carry the same value as CallUUID.
Allow 30 seconds
The request can take about 25 seconds while it waits for a free line. Set your client timeout to at least 30 seconds.