> ## Documentation Index
> Fetch the complete documentation index at: https://help.eazybe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a QR code

> Creates a click-to-chat QR code and prefilled message.



## OpenAPI

````yaml /api-reference/meta/openapi.yaml post /meta/phone-numbers/{phoneNumberId}/qr-codes
openapi: 3.1.0
info:
  title: Eazybe Meta API Documentation
  version: 1.0.0
  description: |
    A single authenticated Eazybe REST surface over WhatsApp Business Cloud API.
    The wrapper uses the Meta credentials captured when a WABA is connected to
    Eazybe, so callers never send Meta access tokens directly.
servers:
  - url: https://cerberus.eazybe.com/staging/api/v2
    description: Eazybe staging API v2.
security:
  - bearerAuth: []
tags:
  - name: Phone numbers
    description: Discover connected WABAs and phone-number IDs.
  - name: Messaging
    description: Send WhatsApp messages and update message state.
  - name: Templates
    description: Manage WhatsApp message templates.
  - name: Media
    description: Upload, inspect, and delete WhatsApp media.
  - name: Webhooks
    description: Manage WABA webhook subscriptions.
  - name: Analytics
    description: Read messaging, conversation, pricing, and template analytics.
  - name: Profiles and settings
    description: Manage business profiles and phone-number settings.
  - name: Automation
    description: Configure welcome messages, ice-breakers, and commands.
  - name: QR codes
    description: Manage click-to-chat QR codes.
  - name: Flows
    description: Manage the WhatsApp Flows lifecycle.
  - name: Number administration
    description: Register numbers, manage PINs, and synchronize coexistence data.
  - name: Block list
    description: List, block, and unblock WhatsApp users.
paths:
  /meta/phone-numbers/{phoneNumberId}/qr-codes:
    parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
    post:
      tags:
        - QR codes
      summary: Create a QR code
      description: Creates a click-to-chat QR code and prefilled message.
      operationId: createQrCode
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - prefilledMessage
              properties:
                prefilledMessage:
                  type: string
              description: |-
                ```json
                {
                  "prefilledMessage": "Hi, I need help with my order"
                }
                ```
            example:
              prefilledMessage: Hi, I need help with my order
      responses:
        '200':
          description: >-
            QR code created


            **Failure responses**


            | **Status** | **Meaning** | **Action** |

            | --- | --- | --- |

            | `401` | Missing, invalid, or expired bearer token |
            Re-authenticate |

            | `404` | `phoneNumberId` not linked to your organization | Verify
            the id |

            | `400` | `prefilledMessage` missing or too long | Send a non-empty
            message |

            | `502` | Graph unreachable or timed out | Retry with backoff |
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - prefilled_message
                  - deep_link_url
                  - qr_image_url
                properties:
                  code:
                    type: string
                  prefilled_message:
                    type: string
                  deep_link_url:
                    type: string
                  qr_image_url:
                    type: string
              example:
                code: 4O4YJHFAB3SLA1
                prefilled_message: Hi, I need help with my order
                deep_link_url: https://wa.me/message/4O4YJHFAB3SLA1
                qr_image_url: >-
                  https://scontent.whatsapp.net/v/t61.24694-24/qr_4O4YJHFAB3SLA1.svg
components:
  parameters:
    PhoneNumberId:
      name: phoneNumberId
      in: path
      required: true
      description: Meta phone-number ID returned by `GET /meta/phone-numbers`.
      schema:
        type: string
      example: '5647382910'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Eazybe token
      description: |
        Eazybe bearer token. The token resolves the caller's organization and
        must be kept on the server.

````