The Call Object

A call object is created when an outbound call is initiated to deliver a voice message.

Attributes

answer_at The timestamp when the call was answered.

total_duration The duration of the call in seconds.

call_duration The duration for which the call was billed in seconds. This might be different from the bill_duration based on the billing interval of the prefix called.

call_direction Indicates whether the call was outbound or inbound.

end_at The timestamp when the call ended.

from_number The caller ID using which the call was initiated.

start_at The timestamp when the call was initiated.

to_number The number to which the call was initiated.

total_amount The total amount charged for the call.

Example Object

{
  "start_at": "2023-10-24 22:54:06",
  "answer_at": "2023-10-24 22:54:16",
  "end_at": "2023-10-24 22:55:46",
  "total_duration": 95,
  "call_duration": 90,
  "call_direction": "outbound",
  "from_number": "07080670000",
  "to_number": "2348020000000",
  "total_amount": "30"
}

The received callback will adhere to this example object.

Last updated