Retrieve a list of notifications belonging to the account used to make the request
[DEPRECATED] Log entries
Retrieve a list of notifications belonging to the account used to make the request
Path parameters
-
The SID of the Account that created the Notification resources to read.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
.
Query parameters
-
Only read notifications of the specified log level. Can be:
0
to read only ERROR notifications or1
to read only WARNING notifications. By default, all notifications are read. -
Only show notifications for the specified date, formatted as
YYYY-MM-DD
. You can also specify an inequality, such as<=YYYY-MM-DD
for messages logged at or before midnight on a date, or>=YYYY-MM-DD
for messages logged at or after midnight on a date. -
Only show notifications for the specified date, formatted as
YYYY-MM-DD
. You can also specify an inequality, such as<=YYYY-MM-DD
for messages logged at or before midnight on a date, or>=YYYY-MM-DD
for messages logged at or after midnight on a date. -
Only show notifications for the specified date, formatted as
YYYY-MM-DD
. You can also specify an inequality, such as<=YYYY-MM-DD
for messages logged at or before midnight on a date, or>=YYYY-MM-DD
for messages logged at or after midnight on a date. -
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
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
curl \
--request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Notifications.json' \
--user "username:password"
{
"end": 0,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?MessageDate=2008-01-02&Log=1&PageSize=50&Page=0",
"page": 0,
"start": 0,
"page_size": 50,
"next_page_uri": null,
"notifications": [
{
"log": "1",
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"more_info": "https://www.twilio.com/docs/errors/21609",
"error_code": "21609",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2008-08-01",
"request_url": "",
"date_created": "Thu, 30 Apr 2015 16:47:33 +0000",
"date_updated": "Thu, 30 Apr 2015 16:47:35 +0000",
"message_date": "Thu, 30 Apr 2015 16:47:32 +0000",
"message_text": "LogLevel=WARN&invalidStatusCallbackUrl=&Msg=Invalid+Url+for+callSid%3A+CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa+invalid+statusCallbackUrl%3A+&ErrorCode=21609",
"request_method": null
}
],
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?MessageDate=2008-01-02&Log=1&PageSize=50&Page=0",
"previous_page_uri": null
}
{
"end": 0,
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?MessageDate=2008-01-02&Log=1&PageSize=50&Page=0",
"page": 0,
"start": 0,
"page_size": 50,
"next_page_uri": null,
"notifications": [],
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json?MessageDate=2008-01-02&Log=1&PageSize=50&Page=0",
"previous_page_uri": null
}