{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-qr-code-list-schema.json",
  "title": "QrCodeList",
  "description": "List of message QR codes with pagination information",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-qr-code-collection-api-openapi.yml#/components/schemas/QrCodeList",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of QR code objects",
      "items": {
        "$ref": "#/$defs/QrCodeDetails"
      }
    },
    "paging": {
      "type": "object",
      "description": "Pagination information for navigating through large result sets.\nContains cursors for accessing previous and next pages of results.\n",
      "properties": {
        "cursors": {
          "type": "object",
          "properties": {
            "before": {
              "type": "string",
              "description": "Cursor for accessing the previous page of results"
            },
            "after": {
              "type": "string",
              "description": "Cursor for accessing the next page of results"
            }
          }
        },
        "previous": {
          "type": "string",
          "format": "uri",
          "description": "URL for the previous page of results"
        },
        "next": {
          "type": "string",
          "format": "uri",
          "description": "URL for the next page of results"
        }
      }
    }
  },
  "$defs": {
    "QrCodeDetails": {
      "type": "object",
      "description": "Complete details of a message QR code",
      "required": [
        "code",
        "prefilled_message",
        "deep_link_url"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Unique 14-character QR code identifier",
          "pattern": "^[A-Z2-7]{14}$"
        },
        "prefilled_message": {
          "type": "string",
          "description": "Pre-filled message text that appears in customer chat"
        },
        "deep_link_url": {
          "type": "string",
          "format": "uri",
          "description": "WhatsApp deep link URL for direct conversation initiation"
        },
        "creation_time": {
          "type": "integer",
          "description": "Unix timestamp when QR code was created (first-party apps only)"
        },
        "qr_image_url": {
          "type": "string",
          "format": "uri",
          "description": "QR code image download URL (when format specified in fields)"
        }
      }
    }
  }
}