List alert

GET /v1/Alerts

Debugger alerts

Query parameters

  • LogLevel string

    Only show alerts for this log-level. Can be: error, warning, notice, or debug.

  • StartDate string(date-time)

    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 or YYYY-MM-DDThh:mm:ssZ. Queries for alerts older than 30 days are not supported.

  • EndDate string(date-time)

    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 or YYYY-MM-DDThh:mm:ssZ. Queries for alerts older than 30 days are not supported.

  • 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 is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • alerts array[object]
      Hide alerts attributes Show alerts attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • alert_text string | null

        The text of the alert

      • api_version string | null

        The API version used when the alert was generated

      • date_created string(date-time) | null

        The ISO 8601 date and time in GMT when the resource was created

      • date_generated string(date-time) | null

        The date and time when the alert was generated specified in ISO 8601 format

      • date_updated string(date-time) | null

        The ISO 8601 date and time in GMT when the resource was last updated

      • error_code string | null

        The error code for the condition that generated the alert

      • log_level string | null

        The log level

      • more_info string | null

        The URL of the page in our Error Dictionary with more information about the error condition

      • request_method string(http-method) | null

        The method used by the request that generated the alert

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • request_url string(uri) | null

        The URL of the request that generated the alert

      • resource_sid string | null

        The SID of the resource for which the alert was generated

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$.

      • service_sid string | null

        The SID of the service or resource that generated the alert

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$.

      • sid string | null

        The unique string that identifies the resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^NO[0-9a-fA-F]{32}$.

      • url string(uri) | null

        The absolute URL of the Alert resource

    • meta object
      Hide meta attributes Show meta attributes object
GET /v1/Alerts
curl \
 -X GET https://monitor.twilio.com/v1/Alerts \
 --user "username:password"
Response examples (200)
{
  "alerts": [
    {
      "account_sid": "string",
      "alert_text": "string",
      "api_version": "string",
      "date_created": "2023-05-04T09:42:00+00:00",
      "date_generated": "2023-05-04T09:42:00+00:00",
      "date_updated": "2023-05-04T09:42:00+00:00",
      "error_code": "string",
      "log_level": "string",
      "more_info": "string",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "resource_sid": "string",
      "service_sid": "string",
      "sid": "string",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}
Response examples (200)
{
  "alerts": [
    {
      "account_sid": "string",
      "alert_text": "string",
      "api_version": "string",
      "date_created": "2024-05-04T09:42:00+00:00",
      "date_generated": "2024-05-04T09:42:00+00:00",
      "date_updated": "2024-05-04T09:42:00+00:00",
      "error_code": "string",
      "log_level": "string",
      "more_info": "string",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "resource_sid": "string",
      "service_sid": "string",
      "sid": "string",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}