Query parameters
-
Only show alerts for this log-level. Can be:
error
,warning
,notice
, ordebug
. -
Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as
YYYY-MM-DD
orYYYY-MM-DDThh:mm:ssZ
. Queries for alerts older than 30 days are not supported. -
Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as
YYYY-MM-DD
orYYYY-MM-DDThh:mm:ssZ
. Queries for alerts older than 30 days are not supported. -
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.
GET
/v1/Alerts
curl \
--request GET 'https://monitor.twilio.com/v1/Alerts' \
--user "username:password"
Response examples (200)
Read empty
{
"meta": {
"key": "alerts",
"url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
"previous_page_url": null
},
"alerts": []
}
{
"meta": {
"key": "alerts",
"url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://monitor.twilio.com/v1/Alerts?LogLevel=log_level&StartDate=2016-01-01&EndDate=2016-01-01&PageSize=50&Page=0",
"previous_page_url": null
},
"alerts": [
{
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://monitor.twilio.com/v1/Alerts/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"log_level": "log_level",
"more_info": "more_info",
"alert_text": "alert_text",
"error_code": "error_code",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"request_url": "http://www.example.com",
"service_sid": "PNe2cd757cd5257b0217a447933a0290d2",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"resource_sid": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_generated": "2015-07-30T20:00:00Z",
"request_method": "GET"
}
]
}