{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-create-qr-code-request-schema.json",
  "title": "CreateQrCodeRequest",
  "description": "Request payload for creating a new message QR code",
  "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/CreateQrCodeRequest",
  "type": "object",
  "required": [
    "prefilled_message"
  ],
  "properties": {
    "prefilled_message": {
      "type": "string",
      "description": "Pre-filled message text (max 140 characters) that appears in customer chat",
      "maxLength": 140
    },
    "generate_qr_image": {
      "type": "string",
      "description": "QR image format. When specified, response includes qr_image_url",
      "enum": [
        "PNG",
        "SVG"
      ]
    }
  }
}