Skip to content

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

ParameterTypeDescription
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

ParameterTypeDescription
answer_methodoptional
stringHTTP verb for answer_url. Default is POST.
ring_urloptional
stringOptional URL notified when the call starts ringing.
ring_methodoptional
stringHTTP verb for ring_url. Default is POST.
hangup_urloptional
stringOptional URL notified when the call is hung up.
hangup_methodoptional
stringHTTP verb for hangup_url. Default is POST.
fallback_urloptional
stringInvoked if answer_url fails after 3 retries or 60s timeout.
fallback_methodoptional
stringHTTP verb for fallback_url. Default is POST.

Machine Detection Parameters

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

Request Parameters

ParameterTypeDescription
machine_detectionoptional
stringDetect machine on answer. Values: true, hangup.
machine_detection_timeoptional
integerTime in ms to detect machine. Default: 5000. Allowed: 2000–10000.
machine_detection_urloptional
stringCallback URL for asynchronous machine detection.
machine_detection_methodoptional
stringHTTP verb for machine_detection_url. Default: POST.
machine_detection_maximum_speech_lengthoptional
integerMax speech duration in ms. Default: 5000. Allowed: 1000–6000.
machine_detection_initial_silenceoptional
integerMax silence after answer (ms). Default: 4500. Allowed: 2000–10000.
machine_detection_maximum_wordsoptional
integerMax number of sentences. Default: 3. Allowed: 2–10.
machine_detection_initial_greetingoptional
integerMax greeting length (ms). Default: 1500. Allowed: 1000–5000.

Advanced Parameters

Request Parameters

ParameterTypeDescription
caller_nameoptional
stringSets caller name (up to 50 characters). Defaults to caller's name.
send_digitsoptional
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_preansweroptional
booleanIf true, sends send_digits during pre-answer. Default: false.
time_limitoptional
integerMax duration of call in seconds (after answered). Default: 14400 (4 hours). Calls ≥ 86400s are disconnected at 24h.
hangup_on_ringoptional
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",
  "request_uuid": "9834029e-58b6-11e1-b8b7-a5bd0e4e126f"
}

Note: The call_uuid (also referred to as request_uuid) is the unique identifier for the call. Both are equivalent and can be used interchangeably.

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

ParameterTypeDescription
Fromoptional
stringThe from number used as the caller ID to initiate the call.
Tooptional
stringThe destination that's called.
RequestUUIDoptional
stringAn identifier that can uniquely identify a request.
ALegRequestUUIDoptional
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUIDoptional
stringThe unique identifier for the call.
Directionoptional
stringThe direction of the call. This will have the value "outbound".
Eventoptional
stringThe event that triggered this notification. This will have the value "Ring".
CallStatusoptional
stringThe status of the call. This will have the value "ringing".
SessionStartoptional
stringA timestamp that indicates when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
STIRAttestationoptional
stringGives details about the attestation assigned to the call by Vobiz.

Parameters Sent to answer_url and fallback_url

ParameterTypeDescription
Fromoptional
stringThe from number used as the caller ID to initiate the call.
Tooptional
stringThe destination that's called.
CallerNameoptional
stringThe name of the caller, if the call was made from a SIP endpoint.
RequestUUIDoptional
stringAn identifier that can uniquely identify a call.
ALegRequestUUIDoptional
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUIDoptional
stringThe unique identifier for the call.
Directionoptional
stringThe direction of the call. This will have the value "outbound".
ALegUUIDoptional
stringA unique identifier for the A leg of the call.
Eventoptional
stringThe event that triggered this notification. This will have the value "StartApp".
STIRVerificationoptional
stringAttestation details. Possible values: Verified, Not Verified, Not Applicable.
CallStatusoptional
stringThe status of the call. This will have the value "in-progress".
SessionStartoptional
stringTimestamp when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
STIRAttestationoptional
stringDetails about the attestation assigned to the call by Vobiz.

Parameters Sent to hangup_url

ParameterTypeDescription
Fromoptional
stringThe from number used as the caller ID to initiate the call.
Tooptional
stringThe destination that's called.
RequestUUIDoptional
stringAn identifier that can uniquely identify a call.
ALegRequestUUIDoptional
stringIdentifies the first leg of the call in case there are multiple legs.
CallUUIDoptional
stringThe unique identifier for the call.
Directionoptional
stringThe direction of the call. This will be "outbound".
ALegUUIDoptional
stringA unique identifier for the A leg of the call.
Eventoptional
stringThe event that triggered this notification. This will have the value "Hangup".
stir_verificationoptional
stringAttestation details. Possible values: Verified, Not Verified, Not Applicable.
CallStatusoptional
stringThe status of the call. This will have the value "completed".
StartTimeoptional
stringTimestamp when the call was initiated. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
AnswerTimeoptional
stringTimestamp when the call was answered. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
SessionStartoptional
stringTimestamp when early media started. Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
EndTimeoptional
stringTimestamp when the call ended. Timezone: Local. Format: yyyy-MM-dd HH:mm:ss
STIRAttestationoptional
stringDetails about the attestation assigned to the call by Vobiz.