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 that can be used to retrieve call details or perform operations on the call.

Attributes

Call Object Attributes

NameTypeDescription
answer_time
stringThe timestamp when the call was answered. Timezone: Local timezone as set in the Vobiz console. Format: yyyy-MM-dd HH:mm:ss
bill_duration
integerThe duration of the call in seconds.
billed_duration
integerThe billed duration of the call in seconds. May differ from bill_duration depending on the billing interval of the destination.
call_direction
stringDirection of the call — either outbound or inbound.
call_duration
integerDuration of the call in seconds.
call_uuid
stringUnique identifier for the call.
end_time
stringThe timestamp when the call ended. Timezone: Local timezone as set in the Vobiz console. Format: yyyy-MM-dd HH:mm:ss
from_number
stringCaller ID used to initiate the call.
hangup_cause_code
integerInteger code for the hangup cause. See hangup causes
hangup_cause_name
stringReason the call was hung up. See hangup causes
hangup_source
stringEntity that triggered the hangup. Possible sources: Caller, Callee, Vobiz, API Request, Answer XML, Error, Unknown. See hangup causes
initiation_time
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_uuid
stringUUID of the A-leg of the call.
resource_uri
stringURI of the requested resource.
source_ip
stringIP address from which the call request originated. Useful for monitoring misuse or unauthorized access.
stir_verification
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_number
stringNumber to which the call was initiated.
total_amount
stringTotal amount charged for the call.
total_rate
stringPer-minute rate based on the destination number.