{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-monitor-v1-alert-instance-schema.json",
  "title": "monitor.v1.alert-instance",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twilio-alerts-api-openapi.yml#/components/schemas/monitor.v1.alert-instance",
  "type": "object",
  "properties": {
    "account_sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^AC[0-9a-fA-F]{32}$",
      "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Alert resource."
    },
    "alert_text": {
      "type": [
        "string",
        "null"
      ],
      "description": "The text of the alert."
    },
    "api_version": {
      "type": [
        "string",
        "null"
      ],
      "description": "The API version used when the alert was generated.  Can be empty for events that don't have a specific API version."
    },
    "date_created": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."
    },
    "date_generated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date and time in GMT when the alert was generated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.  Due to buffering, this can be different than `date_created`."
    },
    "date_updated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."
    },
    "error_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The error code for the condition that generated the alert. See the [Error Dictionary](https://www.twilio.com/docs/api/errors) for possible causes and solutions to the error."
    },
    "log_level": {
      "type": [
        "string",
        "null"
      ],
      "description": "The log level.  Can be: `error`, `warning`, `notice`, or `debug`."
    },
    "more_info": {
      "type": [
        "string",
        "null"
      ],
      "description": "The URL of the page in our [Error Dictionary](https://www.twilio.com/docs/api/errors) with more information about the error condition."
    },
    "request_method": {
      "type": [
        "string",
        "null"
      ],
      "format": "http-method",
      "enum": [
        "HEAD",
        "GET",
        "POST",
        "PATCH",
        "PUT",
        "DELETE"
      ],
      "description": "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."
    },
    "request_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "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": {
      "type": [
        "string",
        "null"
      ],
      "description": "The variables passed in the request that generated the alert. This value is only returned when a single Alert resource is fetched."
    },
    "resource_sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^[a-zA-Z]{2}[0-9a-fA-F]{32}$",
      "description": "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."
    },
    "response_body": {
      "type": [
        "string",
        "null"
      ],
      "description": "The response body of the request that generated the alert. This value is only returned when a single Alert resource is fetched."
    },
    "response_headers": {
      "type": [
        "string",
        "null"
      ],
      "description": "The response headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched."
    },
    "sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^NO[0-9a-fA-F]{32}$",
      "description": "The unique string that we created to identify the Alert resource."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The absolute URL of the Alert resource."
    },
    "request_headers": {
      "type": [
        "string",
        "null"
      ],
      "description": "The request headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched."
    },
    "service_sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^[a-zA-Z]{2}[0-9a-fA-F]{32}$",
      "description": "The SID of the service or resource that generated the alert. Can be `null`."
    }
  }
}