9BITS DEVELOPER CENTRE
  • 9bits Developer Center
  • MESSAGING
    • A2P SMS
      • Overview
      • Start sending A2P SMS
      • Getting Started
      • REST API
        • Overview
        • Batches
        • Delivery Reports
          • Retrieve a delivery report
        • Webhooks
      • SMPP
        • Connectivity
        • Sending Messages
        • Message Encoding
        • SMPP Error Codes
    • Two-Way SMS
      • Overview
      • Start receiving Two-Way SMS
      • Start sending Two-Way SMS
      • Getting Started
      • REST API
        • Overview
        • Webhooks
  • VOICE
    • Voice Messaging API
      • Overview
      • The Call Object
      • Send a voice message
    • SIP Trunking
      • Overview
      • Technical Details
Powered by GitBook
On this page
  1. VOICE
  2. Voice Messaging API

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.

PreviousOverviewNextSend a voice message

Last updated 2 months ago