Make an Outbound Call

Initiate an outbound call to a PSTN number or a SIP endpoint, and make simultaneous bulk calls.

POSThttps://api.vobiz.ai/api/v1/Account/{auth_id}/Call/

This method lets you initiate an outbound call to a PSTN number or a SIP endpoint, and make simultaneous bulk calls.

Authentication Required:

  • X-Auth-ID: Your account ID (e.g., {Auth_ID})
  • X-Auth-Token: Your account Auth Token
  • Content-Type: application/json

Tip: Use < to separate multiple destinations (max 1000). Example: 14157654321<14153464321<sip:john1234@api.vobiz.ai

Required Parameters

Request Parameters

NameTypeDescription
fromRequired
stringThe caller ID phone number in E.164 format (e.g., 14157654321).
toRequired
stringDestination number(s) or SIP URI(s). Use < to separate multiple destinations (max 1000). Examples: 14157654321, sip:john1234@api.vobiz.ai
answer_urlRequired
stringURL called when the call is answered. Must return valid XML.

Callback Parameters

Request Parameters

NameTypeDescription
answer_method
stringHTTP verb for answer_url. Default is POST.
ring_url
stringOptional URL notified when the call starts ringing.
ring_method
stringHTTP verb for ring_url. Default is POST.
hangup_url
stringOptional URL notified when the call is hung up.
hangup_method
stringHTTP verb for hangup_url. Default is POST.
fallback_url
stringInvoked if answer_url fails after 3 retries or 60s timeout.
fallback_method
stringHTTP verb for fallback_url. Default is POST.

Machine Detection Parameters

Note: For detailed machine detection documentation, see the Machine Detection page.

Request Parameters

NameTypeDescription
machine_detection
stringDetect machine on answer. Values: true, hangup.
machine_detection_time
integerTime in ms to detect machine. Default: 5000. Allowed: 2000–10000.
machine_detection_url
stringCallback URL for asynchronous machine detection.
machine_detection_method
stringHTTP verb for machine_detection_url. Default: POST.
machine_detection_maximum_speech_length
integerMax speech duration in ms. Default: 5000. Allowed: 1000–6000.
machine_detection_initial_silence
integerMax silence after answer (ms). Default: 4500. Allowed: 2000–10000.
machine_detection_maximum_words
integerMax number of sentences. Default: 3. Allowed: 2–10.
machine_detection_initial_greeting
integerMax greeting length (ms). Default: 1500. Allowed: 1000–5000.

Advanced Parameters

Request Parameters

NameTypeDescription
caller_name
stringSets caller name (up to 50 characters). Defaults to caller's name.
send_digits
stringSends DTMF digits after call is connected. Use w (0.5s wait) or W (1s wait). Example: 1w2W3 or 123@1000 (1000ms tone).
send_on_preanswer
booleanIf true, sends send_digits during pre-answer. Default: false.
time_limit
integerMax duration of call in seconds (after answered). Default: 14400 (4 hours). Calls ≥ 86400s are disconnected at 24h.
hangup_on_ring
integerMax duration (in seconds) from start of ringing to hangup.

Request Example

Request Body
{
  "from": "14155551234",
  "to": "14155555678",
  "answer_url": "https://example.com/answer",
  "answer_method": "POST",
  "ring_timeout": "30",
  "time_limit": "3600",
  "hangup_url": "https://example.com/hangup",
  "hangup_method": "POST",
  "caller_name": "John Doe",
  "machine_detection": "false"
}
cURL Example
curl -X POST https://api.vobiz.ai/api/v1/Account/{Auth_ID}/Call/ \
  -H "X-Auth-ID: YOUR_AUTH_ID" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "14155551234",
    "to": "14155555678",
    "answer_url": "https://example.com/answer",
    "answer_method": "POST"
  }'

Response Example

Success Response (201 Created)
{
  "api_id": "97ceeb52-58b6-11e1-86da-77300b68f8bb",
  "message": "call fired",
  "call_uuid": "9834029e-58b6-11e1-b8b7-a5bd0e4e126f"
}

Note: The call_uuid is the unique identifier for the call.

Parameters Sent to Callback URLs

For every voice call you make and receive, the system sends a status update to your configured callback URLs. You can read and store this information for analysis, and change the flow of ongoing calls based on the values received.

Parameters Sent to ring_url

NameTypeDescription
From
stringThe from number used as the caller ID to initiate the call.
To
stringThe destination that's called.
RequestUUID
stringAn identifier that can uniquely identify a request.
ALegRequestUUID
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUID
stringThe unique identifier for the call.
Direction
stringThe direction of the call. This will have the value "outbound".
Event
stringThe event that triggered this notification. This will have the value "Ring".
CallStatus
stringThe status of the call. This will have the value "ringing".
SessionStart
stringA timestamp that indicates when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
STIRAttestation
stringGives details about the attestation assigned to the call by Vobiz.

Parameters Sent to answer_url and fallback_url

NameTypeDescription
From
stringThe from number used as the caller ID to initiate the call.
To
stringThe destination that's called.
CallerName
stringThe name of the caller, if the call was made from a SIP endpoint.
RequestUUID
stringAn identifier that can uniquely identify a call.
ALegRequestUUID
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUID
stringThe unique identifier for the call.
Direction
stringThe direction of the call. This will have the value "outbound".
ALegUUID
stringA unique identifier for the A leg of the call.
Event
stringThe event that triggered this notification. This will have the value "StartApp".
STIRVerification
stringAttestation details. Possible values: Verified, Not Verified, Not Applicable.
CallStatus
stringThe status of the call. This will have the value "in-progress".
SessionStart
stringTimestamp when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
STIRAttestation
stringDetails about the attestation assigned to the call by Vobiz.

Parameters Sent to hangup_url

NameTypeDescription
From
stringThe from number used as the caller ID to initiate the call.
To
stringThe destination that's called.
RequestUUID
stringAn identifier that can uniquely identify a call.
ALegRequestUUID
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUID
stringThe unique identifier for the call.
Direction
stringThe direction of the call. This will be "outbound".
ALegUUID
stringA unique identifier for the A leg of the call.
Event
stringThe event that triggered this notification. This will have the value "Hangup".
stir_verification
stringAttestation details. Possible values: Verified, Not Verified, Not Applicable.
CallStatus
stringThe status of the call. This will have the value "completed".
StartTime
stringTimestamp when the call was initiated. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
AnswerTime
stringTimestamp when the call was answered. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
SessionStart
stringTimestamp when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
EndTime
stringTimestamp when the call ended. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
STIRAttestation
stringDetails about the attestation assigned to the call by Vobiz.