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.
Query parameters
-
Log integer
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. -
MessageDate string(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. -
MessageDate< string(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. -
MessageDate> string(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. -
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}/Notifications.json \
--user "username:password"
{
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"notifications": [
{
"account_sid": "string",
"api_version": "string",
"call_sid": "string",
"date_created": "string",
"date_updated": "string",
"error_code": "string",
"log": "string",
"message_date": "string",
"message_text": "string",
"more_info": "https://example.com",
"request_method": "HEAD",
"request_url": "https://example.com",
"sid": "string",
"uri": "https://example.com"
}
],
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}
{
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"notifications": [
{
"account_sid": "string",
"api_version": "string",
"call_sid": "string",
"date_created": "string",
"date_updated": "string",
"error_code": "string",
"log": "string",
"message_date": "string",
"message_text": "string",
"more_info": "https://example.com",
"request_method": "HEAD",
"request_url": "https://example.com",
"sid": "string",
"uri": "https://example.com"
}
],
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}