WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Account → Get QR Code

AI-generated

Overview

This node operation retrieves the QR code image for a specified WasenderAPI account session. It is useful for scenarios where a user needs to scan the QR code to authenticate or connect a WhatsApp session programmatically. For example, it can be used in automation workflows to fetch the QR code for a session that is waiting for user authentication.

Use Case Examples

  1. Fetch the QR code for a WhatsApp session to display it in a user interface for scanning.
  2. Automatically retrieve and store the QR code image for a session to monitor connection status.

Properties

Name Meaning
Session The specific WhatsApp session from which to get the QR code. It can be selected from a list or provided by ID.
Options Additional request options such as retry behavior for API requests.

Output

Binary

The node outputs the QR code image as binary data in PNG format, which can be used for display or further processing.

JSON

  • json - The JSON output contains metadata about the QR code retrieval operation.
  • binary
    • data - The binary data contains the QR code image in PNG format, ready for use or storage.

Dependencies

  • Requires an API key credential for WasenderAPI to authenticate requests.

Troubleshooting

  • Ensure the session ID is valid and the session exists; otherwise, the API request will fail.
  • If the QR code is not returned, verify that the session is in a state that supports QR code generation.
  • Network or API errors may occur; enabling retry options can help mitigate transient failures.

Links

Discussion