Uzapi Business icon

Uzapi Business

Interage com a API da Uzapi Business (WhatsApp)

Overview

This node, named "Uzapi Business," interacts with the Uzapi Business API for WhatsApp. It is designed to perform various operations related to WhatsApp messaging through the Uzapi service. The specific operation "Generate QR Code" allows users to generate a QR code based on a provided Base64-encoded token returned by the WhatsApp API. This can be useful in scenarios where you need to authenticate or link a WhatsApp session via QR code scanning.

Practical examples include:

  • Automating WhatsApp session setup by generating QR codes programmatically.
  • Integrating WhatsApp authentication flows into custom workflows.
  • Managing WhatsApp business accounts that require QR code-based login.

Properties

Name Meaning
QR Token (Base64) A required Base64-encoded token returned by the WhatsApp API, used to generate the QR code.

Output

The node outputs JSON data representing the result of the QR code generation operation. This typically includes the generated QR code data or relevant metadata returned from the Uzapi Business API. If the node supports binary data output (e.g., an image of the QR code), it would be included accordingly, but this is not explicitly detailed in the provided source.

Dependencies

  • Requires access to the Uzapi Business API.
  • Needs an API key credential configured in n8n for authenticating requests to the Uzapi API.
  • The node depends on internal utility modules and an API client class to communicate with the Uzapi service.

Troubleshooting

  • Common issues:

    • Missing or invalid Base64 token: Ensure the "QR Token (Base64)" property is correctly set with a valid token returned by the WhatsApp API.
    • Authentication failures: Verify that the API credentials are properly configured and have the necessary permissions.
    • Operation not implemented error: This occurs if an unsupported operation name is specified; ensure "generateQrCode" is selected.
  • Error messages:

    • Operation "X" não implementada: Means the requested operation is not implemented. Check the operation parameter value.
    • Credential errors: Usually indicate missing or incorrect API authentication details.

Links and References

Discussion