{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-whats-app-business-account-phone-numbers-connection-schema.json",
  "title": "WhatsAppBusinessAccountPhoneNumbersConnection",
  "description": "Paginated collection of WhatsApp Business Account phone numbers",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-phone-number-management-api-openapi.yml#/components/schemas/WhatsAppBusinessAccountPhoneNumbersConnection",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WhatsAppBusinessAccountPhoneNumber"
      },
      "description": "Array of phone number records"
    },
    "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"
        }
      }
    },
    "WhatsAppBusinessAccountHostPlatform": {
      "type": "string",
      "description": "Platform hosting the WhatsApp Business Account",
      "enum": [
        "CLOUD_API",
        "ON_PREMISE",
        "NOT_APPLICABLE"
      ]
    },
    "WhatsAppBusinessAccountPhoneNumber": {
      "type": "object",
      "description": "WhatsApp Business Account phone number details and status information",
      "required": [
        "id",
        "display_phone_number",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the phone number status record"
        },
        "display_phone_number": {
          "type": "string",
          "description": "Phone number in international format for display purposes"
        },
        "verified_name": {
          "type": "string",
          "description": "Business name verified for this phone number"
        },
        "status": {
          "$ref": "#/$defs/WhatsAppPhoneNumberStatus"
        },
        "quality_rating": {
          "$ref": "#/$defs/WhatsAppPhoneNumberQualityRating"
        },
        "country_code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code"
        },
        "country_dial_code": {
          "type": "string",
          "description": "Country dialing code"
        },
        "code_verification_status": {
          "$ref": "#/$defs/WhatsAppCodeVerificationStatus"
        },
        "unified_cert_status": {
          "$ref": "#/$defs/WhatsAppBusinessUnifiedCertStatus"
        },
        "account_mode": {
          "$ref": "#/$defs/WhatsAppBusinessSandboxEligibility"
        },
        "host_platform": {
          "$ref": "#/$defs/WhatsAppBusinessAccountHostPlatform"
        },
        "messaging_limit_tier": {
          "type": "string",
          "description": "Current messaging limit tier for the phone number",
          "enum": [
            "TIER_50",
            "TIER_250",
            "TIER_1K",
            "TIER_10K",
            "TIER_100K",
            "TIER_UNLIMITED"
          ]
        },
        "is_official_business_account": {
          "type": "boolean",
          "description": "Whether this is an official business account"
        },
        "username": {
          "type": [
            "string",
            "null"
          ],
          "description": "WhatsApp username for the business account (if available)"
        }
      }
    },
    "WhatsAppBusinessSandboxEligibility": {
      "type": "string",
      "description": "Account mode indicating sandbox or live environment",
      "enum": [
        "LIVE",
        "SANDBOX"
      ]
    },
    "WhatsAppBusinessUnifiedCertStatus": {
      "type": "string",
      "description": "Unified certification status combining business and name verification",
      "enum": [
        "APPROVED",
        "NAME_PENDING_REVIEW",
        "NAME_NOT_APPROVED",
        "ACCOUNT_REVIEW_NOT_STARTED",
        "LIMITED_ACCESS"
      ]
    },
    "WhatsAppCodeVerificationStatus": {
      "type": "string",
      "description": "Two-step verification status for the phone number",
      "enum": [
        "VERIFIED",
        "UNVERIFIED"
      ]
    },
    "WhatsAppPhoneNumberQualityRating": {
      "type": "string",
      "description": "Quality rating based on message delivery and user feedback",
      "enum": [
        "GREEN",
        "YELLOW",
        "RED",
        "NA"
      ]
    },
    "WhatsAppPhoneNumberStatus": {
      "type": "string",
      "description": "Current status of the phone number in the WhatsApp Business Account",
      "enum": [
        "PENDING",
        "LINKED",
        "UNLINKED",
        "DELETED",
        "MIGRATED",
        "BANNED",
        "RESTRICTED"
      ]
    }
  }
}