{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smstunnel-io/json-schema/smstunnel-io-verification-schema.json",
  "title": "Verification",
  "description": "Twilio's Verification resource. It never contains the code.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smstunnel-io-openapi.json#/components/schemas/Verification",
  "type": "object",
  "required": [
    "sid",
    "service_sid",
    "account_sid",
    "to",
    "channel",
    "status",
    "valid",
    "date_created",
    "date_updated",
    "lookup",
    "amount",
    "payee",
    "send_code_attempts",
    "sna",
    "url"
  ],
  "properties": {
    "sid": {
      "type": "string",
      "pattern": "^VE[0-9a-f]{32}$"
    },
    "service_sid": {
      "type": "string",
      "pattern": "^VA[0-9a-f]{32}$"
    },
    "account_sid": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "channel": {
      "type": "string",
      "enum": [
        "sms"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "approved",
        "canceled"
      ],
      "description": "`pending` on start and fetch; `approved` or `canceled` in the answer that ended it."
    },
    "valid": {
      "type": "boolean",
      "description": "`true` only when `status` is `approved`."
    },
    "date_created": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "date_updated": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "lookup": {
      "type": "object",
      "description": "Always empty.",
      "additionalProperties": false,
      "properties": {}
    },
    "amount": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        null
      ]
    },
    "payee": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        null
      ]
    },
    "send_code_attempts": {
      "type": "array",
      "description": "One entry per text sent: 5 at most.",
      "items": {
        "type": "object",
        "required": [
          "time",
          "channel",
          "attempt_sid"
        ],
        "properties": {
          "time": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "channel": {
            "type": "string",
            "enum": [
              "SMS"
            ]
          },
          "attempt_sid": {
            "type": "string",
            "pattern": "^VL[0-9a-f]{32}$"
          }
        }
      }
    },
    "sna": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        null
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  }
}