Fetch alert

GET /v1/Alerts/{Sid}

Debugger alerts

Path parameters

  • Sid string Required

    The SID of the Alert resource to fetch.

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

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Alert 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. Can be empty for events that don't have a specific API version.

    • date_created string(date-time) | null

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

    • date_generated string(date-time) | null

      The date and time in GMT when the alert was generated specified in ISO 8601 format. Due to buffering, this can be different than date_created.

    • date_updated string(date-time) | null

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

    • error_code string | null

      The error code for the condition that generated the alert. See the Error Dictionary for possible causes and solutions to the error.

    • log_level string | null

      The log level. Can be: error, warning, notice, or debug.

    • 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. If the alert was generated by a request we made to your server, this is the method we used. If the alert was generated by a request from your application to our API, this is the method your application used.

      Values are GET or POST.

    • request_url string | null

      The URL of the request that generated the alert. If the alert was generated by a request we made to your server, this is the URL on your server that generated the alert. If the alert was generated by a request from your application to our API, this is the URL of the resource requested.

    • request_variables string | null

      The variables passed in the request that generated the alert. This value is only returned when a single Alert resource is fetched.

    • resource_sid string | null

      The SID of the resource for which the alert was generated. For instance, if your server failed to respond to an HTTP request during the flow of a particular call, this value would be the SID of the server. This value is empty if the alert was not generated for a particular resource.

      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. This value is only returned when a single Alert resource is fetched.

    • response_headers string | null

      The response headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched.

    • sid string | null

      The unique string that we created to identify the Alert 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.

    • request_headers string | null

      The request headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched.

    • service_sid string | null

      The SID of the service or resource that generated the alert. Can be null.

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

GET /v1/Alerts/{Sid}
curl \
 --request GET 'https://monitor.twilio.com/v1/Alerts/{Sid}' \
 --user "username:password"
Response examples (200)
{
  "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",
  "response_body": "response_body",
  "date_generated": "2015-07-30T20:00:00Z",
  "request_method": "GET",
  "request_headers": "request_headers",
  "response_headers": "response_headers",
  "request_variables": "request_variables"
}