Skip to content

The Call Object

The Call object contains all information about a voice call, including metadata, status, duration, and billing details.

A Call object is created when an outbound call is initiated or when an inbound call is received. You can use the Call object to interact with ongoing calls, retrieve details about completed calls, and transfer ongoing calls, thereby building custom call flows.

Note: Call objects are automatically created for both inbound and outbound calls. Each call has a unique call_uuid (also referred to as request_uuid) that can be used to retrieve call details or perform operations on the call.

Attributes

Call Object Attributes

ParameterTypeDescription
answer_timeoptional
stringThe timestamp when the call was answered. Timezone: Local timezone as set in the Vobiz console. Format: yyyy-MM-dd HH:mm:ss
bill_durationoptional
integerThe duration of the call in seconds.
billed_durationoptional
integerThe billed duration of the call in seconds. May differ from bill_duration depending on the billing interval of the destination.
call_directionoptional
stringDirection of the call — either outbound or inbound.
call_durationoptional
integerDuration of the call in seconds.
call_uuidoptional
stringUnique identifier for the call (also referred to as request_uuid).
end_timeoptional
stringThe timestamp when the call ended. Timezone: Local timezone as set in the Vobiz console. Format: yyyy-MM-dd HH:mm:ss
from_numberoptional
stringCaller ID used to initiate the call.
hangup_cause_codeoptional
integerInteger code for the hangup cause. See hangup causes
hangup_cause_nameoptional
stringReason the call was hung up. See hangup causes
hangup_sourceoptional
stringEntity that triggered the hangup. Possible sources: Caller, Callee, Vobiz, API Request, Answer XML, Error, Unknown. See hangup causes
initiation_timeoptional
stringThe timestamp when the call was initiated. Timezone: Local timezone as set in the Vobiz console. Format: yyyy-MM-dd HH:mm:ss
parent_call_uuidoptional
stringUUID of the A-leg of the call.
resource_urioptional
stringURI of the requested resource.
source_ipoptional
stringIP address from which the call request originated. Useful for monitoring misuse or unauthorized access.
stir_verificationoptional
stringSTIR/SHAKEN attestation info: Outbound: Attestation assigned by Vobiz. Inbound: Attestation received on the inbound call to your Vobiz number. Possible values: Verified: Call is from a verified caller (Attestation A). Not Verified: Caller is not verified or uncertain (Attestation B or C). Not Applicable: STIR/SHAKEN doesn't apply (e.g. non-US calls, cloud calls). Read more about STIR/SHAKEN
to_numberoptional
stringNumber to which the call was initiated.
total_amountoptional
stringTotal amount charged for the call.
total_rateoptional
stringPer-minute rate based on the destination number.