Listing Calls
Listing and Searching Call History
A Call represents a connection between a phone or user agent and the platform. This may be inbound or outbound. The Calls list resource represents the set of phone calls originated and terminated from an account. This section will focus on only using HTTP POST functions.
Section URI
List all calls
/call/2012-04-24/Accounts/{AccountSid}/ListCalls
or
List an individual call
/call/2012-04-24/Accounts/{AccountSid}/ListCalls/{CallSid}
Standard Request Parameters
Parameter | Required | Description |
---|---|---|
From | no | The source or from phone number |
To | no | The destination or to phone number |
Pagination Request Parameters
None of the pagination requests are required
Parameter | Description |
---|---|
Page | The current page number. Zero-indexed, so the first page is 0. 0-20000 |
PageSize | How many items are on each page 0-2000 |
StartTime | Only show recordings that were made on this date/time or later EndTime value examples allowed: 2024-04-01T10:10:10 2024-04-01 10:10:10 2024-04-01 |
EndTime | Only show recordings that were made on this date/time or earlier EndTime value examples allowed: 2024-04-01T10:10:10 2024-04-01 10:10:10 2024-04-01 |
CallSid | Only show recordings that have been started from this CallSid Value: CallSid=h923fh2h32fj23f2 |
SortBy | Sort by the date created instead of the most recent on top Value: DateCreated or DateAsc |
POST or GET Requests
Send us a request to list the calls for today or search for specific calls
Searching your calls can include POST or GET variables From, To, Sid or Limit.
Calls Attributes in Response
Attribute | Description |
Sid | A string that uniquely identifies a call. |
ParentCallSid | A string that uniquely identifies the call that created this leg. |
DateCreated | The date that this call was created. |
DateUpdated | The date that this call was last updated. |
AccountSid | The unique id of the Account that created this call. |
To | The phone number or identifier that will be the recipient of this call. |
From | The phone number or identifier that originated this call. |
PhoneNumberSid | If the call was inbound, this is the Sid of the IncomingPhoneNumber that received the call. |
Status | A string representing the status of the call. Possible values are queued, ringing, in-progress, completed, failed, busy and no-answer. |
StartTime | The start time of the call. Empty if the call has not yet been started. |
EndTime | The end time of the call. Empty if the call has not ended. |
Duration | The length of the call in seconds. |
Price | The charge for this call, in the currency associated with the account. Populated after the call is completed. |
Direction | A string describing the direction of the call. Possible values are inbound, outbound-api, and outbound-dial |
AnsweredBy | If this call was initiated with answering machine detection, either human or machine. Empty otherwise. |
ApiVersion | Displays the current API version |
ForwardFrom | If this call was an incoming call forwarded from another number, the forwarding phone number (depends on carrier supporting forwarding). Empty otherwise. |
CallerName | If this call was an incoming call, the caller’s name. Empty otherwise. |
Uri | The URI for this account, relative to https://v1.api19.com/call/2012-04-24/Accounts |
Get call details
Example JSON Responses
Here is what the JSON will look like when there are multiple calls vs a single call
Last updated