Wacap icon

Wacap

Interact with WhatsApp using Wacap Docker API

Session → Get QR

AI-generated

Summary

Fetches the QR code for a WhatsApp session via the Wacap API.

Inputs

  • sessionId (required) — Session ID/name to fetch the QR code for. Accepts any string; defaults to 'default'.

Output shape

object

The JSON response from the Wacap endpoint /api/sessions/{sessionId}/qr. The exact shape depends on the server but typically contains the QR code data (e.g., as a base64 string or URL).

Examples

Example 1: Obtain QR code for a newly created session to pair a WhatsApp client.

Set Session ID to 'mySession' (or leave default). The node will call GET /api/sessions/mySession/qr and output the server's JSON response.

Discussion