Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Retrieve Call Logs with PHP


In this guide we'll cover how to retrieve information about in progress and completed calls from your Twilio account.

We'll use Twilio's PHP SDK(link takes you to an external page) in these examples to interact with the Twilio REST APIs Calls endpoint.

To get started, we'll first need our Twilio account credentials.

Retrieve your Twilio account credentials

retrieve-your-twilio-account-credentials page anchor

First, you'll need to get your Twilio account credentials. They consist of your AccountSid and your Auth Token. They can be found on the home page of the console(link takes you to an external page).

Retrieve Your Twilio Credentials.

With our account credentials, we can then use the Twilio PHP library to retrieve our call logs.


Retrieving call logs

retrieving-call-logs page anchor

You can use Twilio's REST API to retrieve logs about the phone calls to and from your Twilio account. If you just want to check a couple logs, however, you should try looking at the voice logs in your Twilio console first.

To list all phone calls for your Twilio account, just call $client->calls->read().

(information)

Info

The read method automatically handles paging for you, eagerly fetching all records and paging under the hood. For more information, visit the PHP Helper Library(link takes you to an external page) page.

List All Calls Example

list-all-calls-example page anchor
PHP

_20
<?php
_20
_20
// Update the path below to your autoload.php,
_20
// see https://getcomposer.org/doc/01-basic-usage.md
_20
require_once '/path/to/vendor/autoload.php';
_20
_20
use Twilio\Rest\Client;
_20
_20
// Find your Account SID and Auth Token at twilio.com/console
_20
// and set the environment variables. See http://twil.io/secure
_20
$sid = getenv("TWILIO_ACCOUNT_SID");
_20
$token = getenv("TWILIO_AUTH_TOKEN");
_20
$twilio = new Client($sid, $token);
_20
_20
$calls = $twilio->calls
_20
->read([], 20);
_20
_20
foreach ($calls as $record) {
_20
print($record->sid);
_20
}

Output

_88
{
_88
"calls": [
_88
{
_88
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"annotation": "billingreferencetag1",
_88
"answered_by": "machine_start",
_88
"api_version": "2010-04-01",
_88
"caller_name": "callerid1",
_88
"date_created": "Fri, 18 Oct 2019 17:00:00 +0000",
_88
"date_updated": "Fri, 18 Oct 2019 17:01:00 +0000",
_88
"direction": "outbound-api",
_88
"duration": "4",
_88
"end_time": "Fri, 18 Oct 2019 17:03:00 +0000",
_88
"forwarded_from": "calledvia1",
_88
"from": "+13051416799",
_88
"from_formatted": "(305) 141-6799",
_88
"group_sid": "GPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"parent_call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"phone_number_sid": "PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"price": "-0.200",
_88
"price_unit": "USD",
_88
"sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"start_time": "Fri, 18 Oct 2019 17:02:00 +0000",
_88
"status": "completed",
_88
"subresource_uris": {
_88
"notifications": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications.json",
_88
"recordings": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings.json",
_88
"payments": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payments.json",
_88
"events": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Events.json",
_88
"siprec": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Siprec.json",
_88
"streams": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Streams.json",
_88
"user_defined_message_subscriptions": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessageSubscriptions.json",
_88
"user_defined_messages": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessages.json"
_88
},
_88
"to": "+13051913581",
_88
"to_formatted": "(305) 191-3581",
_88
"trunk_sid": "TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json",
_88
"queue_time": "1000"
_88
},
_88
{
_88
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"annotation": "billingreferencetag2",
_88
"answered_by": "human",
_88
"api_version": "2010-04-01",
_88
"caller_name": "callerid2",
_88
"date_created": "Fri, 18 Oct 2019 16:00:00 +0000",
_88
"date_updated": "Fri, 18 Oct 2019 16:01:00 +0000",
_88
"direction": "inbound",
_88
"duration": "3",
_88
"end_time": "Fri, 18 Oct 2019 16:03:00 +0000",
_88
"forwarded_from": "calledvia2",
_88
"from": "+13051416798",
_88
"from_formatted": "(305) 141-6798",
_88
"group_sid": "GPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"parent_call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"phone_number_sid": "PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"price": "-0.100",
_88
"price_unit": "JPY",
_88
"sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0",
_88
"start_time": "Fri, 18 Oct 2019 16:02:00 +0000",
_88
"status": "completed",
_88
"subresource_uris": {
_88
"notifications": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Notifications.json",
_88
"recordings": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Recordings.json",
_88
"payments": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Payments.json",
_88
"events": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Events.json",
_88
"siprec": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Siprec.json",
_88
"streams": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Streams.json",
_88
"user_defined_message_subscriptions": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/UserDefinedMessageSubscriptions.json",
_88
"user_defined_messages": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/UserDefinedMessages.json"
_88
},
_88
"to": "+13051913580",
_88
"to_formatted": "(305) 191-3580",
_88
"trunk_sid": "TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
_88
"queue_time": "1000"
_88
}
_88
],
_88
"end": 1,
_88
"first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0",
_88
"next_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=1&PageToken=PACAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0",
_88
"page": 0,
_88
"page_size": 2,
_88
"previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0",
_88
"start": 0,
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0"
_88
}

You can also filter the results. This example only returns phone calls to the phone number "+15558675309" which had a call status of "busy" but you can filter on other call properties as well.

Retrieve Busy Calls To Specific Number Example

retrieve-busy-calls-to-specific-number-example page anchor
PHP

_20
<?php
_20
_20
// Update the path below to your autoload.php,
_20
// see https://getcomposer.org/doc/01-basic-usage.md
_20
require_once '/path/to/vendor/autoload.php';
_20
_20
use Twilio\Rest\Client;
_20
_20
// Find your Account SID and Auth Token at twilio.com/console
_20
// and set the environment variables. See http://twil.io/secure
_20
$sid = getenv("TWILIO_ACCOUNT_SID");
_20
$token = getenv("TWILIO_AUTH_TOKEN");
_20
$twilio = new Client($sid, $token);
_20
_20
$calls = $twilio->calls
_20
->read(["status" => "busy", "to" => "+15558675310"], 20);
_20
_20
foreach ($calls as $record) {
_20
print($record->sid);
_20
}

Output

_88
{
_88
"calls": [
_88
{
_88
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"annotation": "billingreferencetag1",
_88
"answered_by": "machine_start",
_88
"api_version": "2010-04-01",
_88
"caller_name": "callerid1",
_88
"date_created": "Fri, 18 Oct 2019 17:00:00 +0000",
_88
"date_updated": "Fri, 18 Oct 2019 17:01:00 +0000",
_88
"direction": "outbound-api",
_88
"duration": "4",
_88
"end_time": "Fri, 18 Oct 2019 17:03:00 +0000",
_88
"forwarded_from": "calledvia1",
_88
"from": "+13051416799",
_88
"from_formatted": "(305) 141-6799",
_88
"group_sid": "GPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"parent_call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"phone_number_sid": "PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"price": "-0.200",
_88
"price_unit": "USD",
_88
"sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"start_time": "Fri, 18 Oct 2019 17:02:00 +0000",
_88
"status": "completed",
_88
"subresource_uris": {
_88
"notifications": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications.json",
_88
"recordings": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings.json",
_88
"payments": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payments.json",
_88
"events": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Events.json",
_88
"siprec": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Siprec.json",
_88
"streams": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Streams.json",
_88
"user_defined_message_subscriptions": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessageSubscriptions.json",
_88
"user_defined_messages": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessages.json"
_88
},
_88
"to": "+13051913581",
_88
"to_formatted": "(305) 191-3581",
_88
"trunk_sid": "TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json",
_88
"queue_time": "1000"
_88
},
_88
{
_88
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"annotation": "billingreferencetag2",
_88
"answered_by": "human",
_88
"api_version": "2010-04-01",
_88
"caller_name": "callerid2",
_88
"date_created": "Fri, 18 Oct 2019 16:00:00 +0000",
_88
"date_updated": "Fri, 18 Oct 2019 16:01:00 +0000",
_88
"direction": "inbound",
_88
"duration": "3",
_88
"end_time": "Fri, 18 Oct 2019 16:03:00 +0000",
_88
"forwarded_from": "calledvia2",
_88
"from": "+13051416798",
_88
"from_formatted": "(305) 141-6798",
_88
"group_sid": "GPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"parent_call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"phone_number_sid": "PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"price": "-0.100",
_88
"price_unit": "JPY",
_88
"sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0",
_88
"start_time": "Fri, 18 Oct 2019 16:02:00 +0000",
_88
"status": "completed",
_88
"subresource_uris": {
_88
"notifications": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Notifications.json",
_88
"recordings": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Recordings.json",
_88
"payments": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Payments.json",
_88
"events": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Events.json",
_88
"siprec": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Siprec.json",
_88
"streams": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/Streams.json",
_88
"user_defined_message_subscriptions": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/UserDefinedMessageSubscriptions.json",
_88
"user_defined_messages": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0/UserDefinedMessages.json"
_88
},
_88
"to": "+13051913580",
_88
"to_formatted": "(305) 191-3580",
_88
"trunk_sid": "TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
_88
"queue_time": "1000"
_88
}
_88
],
_88
"end": 1,
_88
"first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0",
_88
"next_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=1&PageToken=PACAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0",
_88
"page": 0,
_88
"page_size": 2,
_88
"previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0",
_88
"start": 0,
_88
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json?Status=completed&To=%2B123456789&From=%2B987654321&StartTime=2008-01-02&ParentCallSid=CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&EndTime=2009-01-02&PageSize=2&Page=0"
_88
}

Finally, if you just want to retrieve information about a specific call you can get that CallSid directly.

Retrieve Call By Id Example

retrieve-call-by-id-example page anchor
PHP

_18
<?php
_18
_18
// Update the path below to your autoload.php,
_18
// see https://getcomposer.org/doc/01-basic-usage.md
_18
require_once '/path/to/vendor/autoload.php';
_18
_18
use Twilio\Rest\Client;
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
$sid = getenv("TWILIO_ACCOUNT_SID");
_18
$token = getenv("TWILIO_AUTH_TOKEN");
_18
$twilio = new Client($sid, $token);
_18
_18
$call = $twilio->calls("CA42ed11f93dc08b952027ffbc406d0868")
_18
->fetch();
_18
_18
print($call->to);

Output

_37
{
_37
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_37
"answered_by": "machine_start",
_37
"api_version": "2010-04-01",
_37
"caller_name": "callerid",
_37
"date_created": "Fri, 18 Oct 2019 17:00:00 +0000",
_37
"date_updated": "Fri, 18 Oct 2019 17:01:00 +0000",
_37
"direction": "outbound-api",
_37
"duration": "4",
_37
"end_time": "Fri, 18 Oct 2019 17:03:00 +0000",
_37
"forwarded_from": "calledvia",
_37
"from": "+13051416799",
_37
"from_formatted": "(305) 141-6799",
_37
"group_sid": "GPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_37
"parent_call_sid": "CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_37
"phone_number_sid": "PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_37
"price": "-0.200",
_37
"price_unit": "USD",
_37
"sid": "CA42ed11f93dc08b952027ffbc406d0868",
_37
"start_time": "Fri, 18 Oct 2019 17:02:00 +0000",
_37
"status": "completed",
_37
"subresource_uris": {
_37
"notifications": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications.json",
_37
"recordings": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings.json",
_37
"payments": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payments.json",
_37
"events": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Events.json",
_37
"siprec": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Siprec.json",
_37
"streams": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Streams.json",
_37
"user_defined_message_subscriptions": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessageSubscriptions.json",
_37
"user_defined_messages": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/UserDefinedMessages.json"
_37
},
_37
"to": "+13051913581",
_37
"to_formatted": "(305) 191-3581",
_37
"trunk_sid": "TKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_37
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json",
_37
"queue_time": "1000"
_37
}


We learned how to retrieve call logs using PHP. Check out our tutorials to see full implementations of Twilio Voice in PHP with Laravel.


Rate this page: