z-api by @jaimeflneto icon

z-api by @jaimeflneto

Interact with Z-API to send WhatsApp messages

Overview

The 'Get QR Code' operation of the 'Instance' resource in the Z-API n8n node retrieves the QR code necessary for establishing a WhatsApp session. This QR code is essential for authenticating and connecting a WhatsApp account to the Z-API service, enabling programmatic interactions with WhatsApp through the API.

Use Case Examples

  1. Automating the process of connecting a new WhatsApp account to Z-API by generating and scanning the QR code.
  2. Integrating WhatsApp authentication into a custom application by programmatically obtaining and displaying the QR code for user scanning.

Output

Binary

The operation returns the QR code as a binary image, which can be displayed to the user for scanning.

JSON

  • qrCode - The QR code image data in binary format.

Dependencies

  • Z-API instance ID
  • Z-API instance token
  • Z-API client token

Troubleshooting

  • Ensure that the Z-API instance ID, instance token, and client token are correctly configured in the node's credentials.
  • Verify that the Z-API service is operational and accessible from your network.
  • If the QR code is not generated, check for any error messages in the node's execution logs for further diagnostics.

Links

Discussion