Z-API WhatsApp icon

Z-API WhatsApp

Integration with Z-API (WhatsApp) organized by resources (messages, groups, chats, contacts, products, queue, instance, status, etc.).

Instance → Get QRCode (Bytes)

AI-generated

Summary

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

Links

Discussion