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.
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. |