Fetch alert

GET /v1/Alerts/{Sid}

Debugger alerts

Path parameters

  • Sid string Required

    The SID of the Alert resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes 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_headers string | null

      The request headers of the request that generated the alert

    • 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

    • request_variables string | null

      The variables passed in 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}$.

    • response_body string | null

      The response body of the request that generated the alert

    • response_headers string | null

      The response headers of the request that generated the alert

    • 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

GET /v1/Alerts/{Sid}
curl \
 -X GET https://monitor.twilio.com/v1/Alerts/{Sid} \
 --user "username:password"
Response examples (200)
{
  "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_headers": "string",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "resource_sid": "string",
  "response_body": "string",
  "response_headers": "string",
  "service_sid": "string",
  "sid": "string",
  "url": "https://example.com"
}
Response examples (200)
{
  "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_headers": "string",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "resource_sid": "string",
  "response_body": "string",
  "response_headers": "string",
  "service_sid": "string",
  "sid": "string",
  "url": "https://example.com"
}