Actions51
- API Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Message Actions
- Message Queue Actions
- Product Actions
- Status Actions
Instance → Get QRCode (Bytes)
AI-generatedSummary
Fetch the WhatsApp instance's QR code image (binary) and its connection status.
Inputs
None.
Output shape
Array of items where each item has a 'qrCode' field (string containing the QR code data) and a 'status' field (string indicating 'QRCODE' or 'CONNECTED').
The returned array contains one element; 'qrCode' may be base64-encoded image data. If the device is already connected, 'qrCode' is null and 'status' is 'CONNECTED'.
Examples
Example 1: Obtain QR code to connect a new WhatsApp instance
Resource=Instance, Operation=Get QRCode (Bytes); no other parameters
Example 2: Check connection status while retrieving QR code
Same node, operation Get QRCode (Bytes); returns status 'CONNECTED' if already linked