Actions50
- Event Actions
- Message Actions
- Instance Actions
- Group Actions
- Community Actions
- Contact Actions
- Chat Actions
- Profile Actions
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
- Automating the process of connecting a new WhatsApp account to Z-API by generating and scanning the QR code.
- 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
- Z-API Documentation: Get QRCode - Official documentation for the 'Get QRCode' method in Z-API.
- n8n Community Node: z-api by @jaimeflneto - Community node for integrating Z-API with n8n.