Retrieves a collection of calls made to and from your account
A Call is an object that represents a connection between a telephone and Twilio.
Retrieves a collection of calls made to and from your account
Path parameters
-
The SID of the Account that created the Call resource(s) to read.
Query parameters
-
To string(phone-number)
Only show calls made to this phone number, SIP address, Client identifier or SIM SID.
-
From string(phone-number)
Only include calls from this phone number, SIP address, Client identifier or SIM SID.
-
ParentCallSid string
Only include calls spawned by calls with this SID.
-
Status string
The status of the calls to include. Can be:
queued
,ringing
,in-progress
,canceled
,completed
,failed
,busy
, orno-answer
.Values are
queued
,ringing
,in-progress
,completed
,busy
,failed
,no-answer
, orcanceled
. -
StartTime string(date-time)
Only include calls that started on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that started on this date. You can also specify an inequality, such asStartTime<=YYYY-MM-DD
, to read calls that started on or before midnight of this date, andStartTime>=YYYY-MM-DD
to read calls that started on or after midnight of this date. -
StartTime< string(date-time)
Only include calls that started on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that started on this date. You can also specify an inequality, such asStartTime<=YYYY-MM-DD
, to read calls that started on or before midnight of this date, andStartTime>=YYYY-MM-DD
to read calls that started on or after midnight of this date. -
StartTime> string(date-time)
Only include calls that started on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that started on this date. You can also specify an inequality, such asStartTime<=YYYY-MM-DD
, to read calls that started on or before midnight of this date, andStartTime>=YYYY-MM-DD
to read calls that started on or after midnight of this date. -
EndTime string(date-time)
Only include calls that ended on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that ended on this date. You can also specify an inequality, such asEndTime<=YYYY-MM-DD
, to read calls that ended on or before midnight of this date, andEndTime>=YYYY-MM-DD
to read calls that ended on or after midnight of this date. -
EndTime< string(date-time)
Only include calls that ended on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that ended on this date. You can also specify an inequality, such asEndTime<=YYYY-MM-DD
, to read calls that ended on or before midnight of this date, andEndTime>=YYYY-MM-DD
to read calls that ended on or after midnight of this date. -
EndTime> string(date-time)
Only include calls that ended on this date. Specify a date as
YYYY-MM-DD
in GMT, for example:2009-07-06
, to read only calls that ended on this date. You can also specify an inequality, such asEndTime<=YYYY-MM-DD
, to read calls that ended on or before midnight of this date, andEndTime>=YYYY-MM-DD
to read calls that ended on or after midnight of this date. -
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json \
--user "username:password"
{
"calls": [
{
"account_sid": "string",
"answered_by": "string",
"api_version": "string",
"caller_name": "string",
"date_created": "string",
"date_updated": "string",
"direction": "string",
"duration": "string",
"end_time": "string",
"forwarded_from": "string",
"from": "string",
"from_formatted": "string",
"group_sid": "string",
"parent_call_sid": "string",
"phone_number_sid": "string",
"price": "string",
"price_unit": "string",
"queue_time": "string",
"sid": "string",
"start_time": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"to_formatted": "string",
"trunk_sid": "string",
"uri": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}
{
"calls": [
{
"account_sid": "string",
"answered_by": "string",
"api_version": "string",
"caller_name": "string",
"date_created": "string",
"date_updated": "string",
"direction": "string",
"duration": "string",
"end_time": "string",
"forwarded_from": "string",
"from": "string",
"from_formatted": "string",
"group_sid": "string",
"parent_call_sid": "string",
"phone_number_sid": "string",
"price": "string",
"price_unit": "string",
"queue_time": "string",
"sid": "string",
"start_time": "string",
"status": "queued",
"subresource_uris": {},
"to": "string",
"to_formatted": "string",
"trunk_sid": "string",
"uri": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}