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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_qr_code"
}
}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. |