{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-pre-verified-phone-numbers-response-schema.json",
  "title": "PreVerifiedPhoneNumbersResponse",
  "description": "Response containing list of pre-verified phone numbers",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-pre-verified-phone-numbers-api-openapi.yml#/components/schemas/PreVerifiedPhoneNumbersResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "description": "List of pre-verified phone numbers",
      "items": {
        "$ref": "#/$defs/PreVerifiedPhoneNumber"
      }
    },
    "paging": {
      "$ref": "#/$defs/CursorPaging"
    }
  },
  "$defs": {
    "CursorPaging": {
      "type": "object",
      "description": "Cursor-based pagination information",
      "properties": {
        "cursors": {
          "type": "object",
          "properties": {
            "before": {
              "type": "string",
              "description": "Cursor pointing to the start of the page of data"
            },
            "after": {
              "type": "string",
              "description": "Cursor pointing to the end of the page of data"
            }
          }
        },
        "previous": {
          "type": "string",
          "description": "URL for the previous page of results"
        },
        "next": {
          "type": "string",
          "description": "URL for the next page of results"
        }
      }
    },
    "PhoneNumberAvailabilityStatus": {
      "type": "string",
      "description": "Current availability status of the pre-verified phone number",
      "enum": [
        "AVAILABLE",
        "IN_USE",
        "RESERVED",
        "UNAVAILABLE"
      ]
    },
    "PhoneNumberVerificationStatus": {
      "type": "string",
      "description": "Current verification status of the pre-verified phone number",
      "enum": [
        "VERIFIED",
        "PENDING",
        "FAILED",
        "EXPIRED"
      ]
    },
    "PreVerifiedPhoneNumber": {
      "type": "object",
      "description": "Pre-verified phone number details and status information",
      "required": [
        "id",
        "display_phone_number",
        "verification_status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the pre-verified phone number"
        },
        "display_phone_number": {
          "type": "string",
          "description": "Formatted display version of the phone number"
        },
        "country_prefix": {
          "type": "integer",
          "description": "Country code prefix for the phone number",
          "minimum": 1,
          "maximum": 999
        },
        "verification_status": {
          "$ref": "#/$defs/PhoneNumberVerificationStatus"
        },
        "availability_status": {
          "$ref": "#/$defs/PhoneNumberAvailabilityStatus"
        },
        "created_time": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the phone number was pre-verified"
        },
        "last_updated": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the phone number information was last updated"
        },
        "supported_features": {
          "type": "array",
          "description": "List of WhatsApp Business features supported by this phone number",
          "items": {
            "$ref": "#/$defs/WhatsAppBusinessFeature"
          }
        },
        "country_code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code for the phone number",
          "pattern": "^[A-Z]{2}$"
        },
        "region": {
          "type": "string",
          "description": "Geographic region or area for the phone number"
        }
      }
    },
    "WhatsAppBusinessFeature": {
      "type": "string",
      "description": "WhatsApp Business features supported by the phone number",
      "enum": [
        "MESSAGING",
        "BUSINESS_PROFILE",
        "WEBHOOKS",
        "TEMPLATES",
        "ANALYTICS",
        "COMMERCE",
        "FLOWS"
      ]
    }
  }
}