Chat icon

Chat

Interact with the Chat API

Actions253

Inbox → WhatsApp Get Qr Code

AI-generated

Summary

Generates a WhatsApp Web QR code for the selected account and inbox.

Inputs

  • accountId (required) — The selected WhatsApp account identifier.
  • whatsappSpecialInboxId (required) — The QuePasa WhatsApp inbox used to generate the QR code.
  • historySyncDays — Number of days of WhatsApp history to import when connecting (0‑365).

Output shape

binary QR code image (base64‑encoded PNG)

Success returns the generated QR code image; failure returns an error object with a message.

Examples

Example 1: Create a QR code for the default account and inbox

accountId: list value empty (use first), whatsappSpecialInboxId: list value default, historySyncDays: 3

Example 2: Generate QR code with 30‑day history import

accountId: list value "1", whatsappSpecialInboxId: list value "5", historySyncDays: 30

Links

Discussion