Create or Update Message QR Code
Create a new QR code (without code parameter) or update existing QR code (with code parameter). Supports optional QR image generation in PNG or SVG format.
Request
- Base URLhttps://graph.facebook.com
- URLhttps://graph.facebook.com/{Version}/{Phone-Number-ID}/message_qrdls
- AuthHTTP bearer
Path parameters
Graph API version to use for this request. Determines the API behavior and available features.
The WhatsApp Business Account phone number ID for which to create or update the QR code. This ID is provided when you add a phone number to your WhatsApp Business Account.
Headers
The user agent string identifying the client software making the request.
Bearer token for API authentication. This should be a valid access token obtained through the appropriate OAuth flow or system user token.
Media type of the request body
Request body
Example request
{
"prefilled_message": "Hi! I'm interested in your products. Can you help me?",
"generate_qr_image": "SVG"
}Response
Successfully created or updated the message QR code
Example response
{
"code": "ANED2T5QRU7HG1",
"prefilled_message": "Hi! I'm interested in your products. Can you help me?",
"deep_link_url": "https://wa.me/message/ANED2T5QRU7HG1",
"qr_image_url": "https://scontent-iad3-2.xx.fbcdn.net/m1/v/t6/An-psFmLBls2NFXnhhkSVqwIHEqCTQoNKTLxxlOeci0Wbsukd2RLiwZalHrXwqT5RTFSzOhyw6OLvJJO0itaQtJI1BS2WkNcV67wR3GNx7ZX1tFSNCbpo1e6KPptKF1GbVGzmUfkgSPX?ccb=10-5&oh=00_AfAOAr6oRA2OKV_Ur3GUh4em57sACxUkfhXHsObiFrxOsA&oe=64DCCEF6&_nc_sid=5a413f"
}Changes
No recorded changes to this operation across all 5 revisions of this API.