Get QR code to connect WhatsApp
get_qr_codeRetrieve a WhatsApp instance’s QR code as a base64/data payload so users can scan it in Linked Devices when disconnected; call again if the code expires.
Instructions
Returns the QR code (base64/data payload) for an instance so the user can scan it in WhatsApp > Linked devices. Use when the instance is disconnected. QR codes expire in about a minute; call again if it expired. If the instance is already connected the response says so. Read-only. Show the QR to the user; do not try to decode it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | No | ZapZap instance id (a connected WhatsApp number). Optional when ZAPZAP_INSTANCE_ID is configured; otherwise call list_instances first. |