Get the QR code to link a number
get_account_qr_codeRetrieves a WhatsApp QR code image for linking a device to an account, waiting if needed and returning status when already linked.
Instructions
The QR code to scan in WhatsApp (Settings > Linked devices > Link a device), as an image. Waits a few seconds for one when the account is still starting. QR codes rotate about every 20 seconds: call again if it expired. Returns the status instead when the account is already linked, and the pairing code when it links by phone number.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "get_account_qr_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| waitSeconds | No | How long to wait for a QR code to appear. Default 15. |