Wasup icon

Wasup

Send WhatsApp messages and manage instances via the Wasup API

Connection → Get QR / Pairing Code

AI-generated

Summary

Fetches the current WhatsApp linking QR code for a Wasup instance, returned either as a base64 data URL in JSON or as a PNG written to a binary property.

Inputs

  • Instance (required) — The Wasup instance to query. Pick it from a searchable list, or enter its ID directly (e.g. wa_lxyz123_abc45).
  • Response Format — 'JSON (Base64 Data URL)' (default) returns the API's JSON response as-is. 'PNG Image (Binary)' downloads the QR as a PNG.
  • Put Output In Field — Shown only when the format is PNG Image. Name of the binary property that receives the PNG (default 'data'). The file is named '-qr.png'.

Output shape

One item per input item. In JSON mode, the item holds the Wasup API response from GET /api/instances/{id}/qr. In image mode, the item's JSON is { success: true, instanceId, format: 'image' } and the PNG is attached as binary under the chosen property name.

The exact fields of the JSON-mode response come from the Wasup server and are not defined in the node source. Despite the name, this operation only requests the QR endpoint; to get a pairing code, use the Connect operation with a pairing phone or the Pair operation. With 'Continue on Fail' enabled, errors are returned as { error: message } items.

Examples

Example 1: Display a QR code in a dashboard or email so a user can link their WhatsApp number.

Run Connect on the instance first, then Get QR / Pairing Code with Response Format = JSON (Base64 Data URL), and use the returned data URL in an tag.

Example 2: Send the QR image to a chat or file storage node.

Response Format = PNG Image (Binary), Put Output In Field = 'data'. Pass the binary property to a Telegram, Slack or Google Drive node.

Links

Discussion