WhatsApp QR Codes API

Create and manage QR codes for customer conversations

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /{phone-number-id}/message_qrdls Create a conversation-starting QR code · WhatsApp Create QR Code #
Ask an LLM
“How do I generate a QR code customers scan to start a chat?”
“Can a new QR code carry a pre-filled message?”
Tell an agent
Create a QR code for phone number {phone_number_id} with pre-filled message {prefilled_message}.
Generate a {generate_qr_image} QR code on {phone_number_id} saying {prefilled_message}.
GET /{phone-number-id}/message_qrdls List QR codes for a phone number · WhatsApp List QR Codes #
Ask an LLM
“Which QR codes have I generated for my WhatsApp number?”
“Can I see all the conversation-starting QR codes on a phone number?”
Tell an agent
List QR codes for phone number {phone_number_id}.
Show every conversation QR code on {phone_number_id}.
GET /{phone-number-id}/message_qrdls/{qr-code-id} Get a QR code · WhatsApp Get QR Code #
Ask an LLM
“What message does a specific QR code pre-fill?”
“Can I fetch one conversation QR code by its ID?”
Tell an agent
Get QR code {qr_code_id} for phone number {phone_number_id}.
Show the pre-filled message on QR code {qr_code_id} on {phone_number_id}.
POST /{phone-number-id}/message_qrdls/{qr-code-id} Change the pre-filled message on a QR code · WhatsApp Update QR Code #
Ask an LLM
“Can I change the message a QR code pre-fills?”
“How do I edit an existing conversation QR code?”
Tell an agent
Update QR code {qr_code_id} on {phone_number_id} to pre-fill {prefilled_message}.
Change the message on existing QR code {qr_code_id} for {phone_number_id}.
DELETE /{phone-number-id}/message_qrdls/{qr-code-id} Delete a QR code · WhatsApp Delete QR Code #
Ask an LLM
“How do I remove a QR code I no longer need?”
“Can I delete a conversation QR code?”
Tell an agent destructive · confirm first
Delete QR code {qr_code_id} from phone number {phone_number_id}.
Remove conversation QR code {qr_code_id} on {phone_number_id}.

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Reference
https://developers.facebook.com/documentation/business-messaging/whatsapp/reference/whatsapp-business-phone-number/message-api
🔗
Pricing
https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing
🔗
StatusPage
https://metastatus.com/
🔗
ChangeLog
https://developers.facebook.com/documentation/business-messaging/whatsapp/changelog
🔗
ErrorCodes
https://developers.facebook.com/documentation/business-messaging/whatsapp/support/error-codes
🔗
PostmanCollection
https://www.postman.com/meta/whatsapp-business-platform/collection/wlk6lh4/whatsapp-cloud-api
🔗
Node.js SDK
https://github.com/WhatsApp/WhatsApp-Nodejs-SDK
🔗
Sandbox
https://whatsappbusiness.com/developers/developer-hub/
🔗
Media Reference
https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/media
🔗
Phone Numbers Reference
https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/phone-numbers
🔗
Business Profiles Reference
https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/business-profiles
🔗
Two-Step Verification
https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/two-step-verification
🔗
Versioning
https://developers.facebook.com/docs/graph-api/guides/versioning
🔗
PostmanCollection
https://www.postman.com/meta/whatsapp-business-platform/collection/3kru5r6/whatsapp-business-management-api
🔗
Reference
https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/overview

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/whatsapp:whatsapp-qr-codes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

whatsapp-qr-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WhatsApp Cloud QR Codes API
  description: The WhatsApp Cloud API enables businesses to send and receive messages, manage media, configure business profiles, and handle phone number registration through Meta's cloud-hosted infrastructure. All endpoints operate on the Meta Graph API.
  version: '21.0'
  contact:
    name: Meta Platform Support
    url: https://developers.facebook.com/support/
  termsOfService: https://www.whatsapp.com/legal/business-terms
servers:
- url: https://graph.facebook.com/v21.0
  description: Meta Graph API Production Server
security:
- bearerAuth: []
tags:
- name: QR Codes
  description: Create and manage QR codes for customer conversations
paths:
  /{phone-number-id}/message_qrdls:
    post:
      operationId: createQrCode
      summary: WhatsApp Create QR Code
      description: Creates a QR code that customers can scan to start a conversation.
      tags:
      - QR Codes
      parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prefilled_message
              - generate_qr_image
              properties:
                prefilled_message:
                  type: string
                  description: Pre-filled message text
                generate_qr_image:
                  type: string
                  enum:
                  - SVG
                  - PNG
                  description: Image format for the QR code
      responses:
        '200':
          description: QR code created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrCodeResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    get:
      operationId: listQrCodes
      summary: WhatsApp List QR Codes
      description: Lists all QR codes for a phone number.
      tags:
      - QR Codes
      parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
      responses:
        '200':
          description: QR codes retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/QrCodeResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /{phone-number-id}/message_qrdls/{qr-code-id}:
    get:
      operationId: getQrCode
      summary: WhatsApp Get QR Code
      description: Retrieves a specific QR code.
      tags:
      - QR Codes
      parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
      - $ref: '#/components/parameters/QrCodeId'
      responses:
        '200':
          description: QR code retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrCodeResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: updateQrCode
      summary: WhatsApp Update QR Code
      description: Updates the prefilled message for a QR code.
      tags:
      - QR Codes
      parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
      - $ref: '#/components/parameters/QrCodeId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prefilled_message:
                  type: string
      responses:
        '200':
          description: QR code updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QrCodeResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: deleteQrCode
      summary: WhatsApp Delete QR Code
      description: Deletes a QR code.
      tags:
      - QR Codes
      parameters:
      - $ref: '#/components/parameters/PhoneNumberId'
      - $ref: '#/components/parameters/QrCodeId'
      responses:
        '200':
          description: QR code deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  parameters:
    QrCodeId:
      name: qr-code-id
      in: path
      required: true
      description: QR code identifier
      schema:
        type: string
    PhoneNumberId:
      name: phone-number-id
      in: path
      required: true
      description: Phone Number ID from the WhatsApp Business Account
      schema:
        type: string
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
    QrCodeResponse:
      type: object
      properties:
        code:
          type: string
          description: QR code identifier
          example: example_value
        prefilled_message:
          type: string
          example: Hello from WhatsApp!
        deep_link_url:
          type: string
          format: uri
          example: https://example.com/image.jpg
        qr_image_url:
          type: string
          format: uri
          example: https://example.com/image.jpg
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: System User Token or User Access Token with whatsapp_business_messaging permission
externalDocs:
  description: WhatsApp Cloud API Documentation
  url: https://developers.facebook.com/docs/whatsapp/cloud-api