Avisa API icon

Avisa API

Integration with Avisa API

Actions9

Overview

This node integrates with the Avisa API to send WhatsApp messages and perform related messaging operations. Specifically, for the Message resource and Send Text operation, it sends a plain text message to a specified phone number in international format.

Common scenarios where this node is beneficial include:

  • Automating customer notifications or alerts via WhatsApp.
  • Sending personalized messages to users as part of marketing campaigns.
  • Integrating WhatsApp messaging into workflows for support or engagement.

Example use case: Automatically sending order confirmation messages to customers after a purchase, using their phone numbers and a templated text message.

Properties

Name Meaning
Phone Number The recipient's phone number in international format (e.g., +1234567890).
Message The text content of the message to be sent via WhatsApp.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each object represents the response from the Avisa API for the send text message request.

Typical output fields may include:

  • success: Boolean indicating if the message was sent successfully.
  • Additional data returned by the API about the message status or errors.

If an error occurs (e.g., invalid number or authentication failure), the output will contain an object with:

  • success: false
  • error: Description of the error returned by the API.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Avisa API.
  • The node uses the base URL configured in the credentials to make HTTP POST requests.
  • The API token must be provided and is used as a Bearer token in the Authorization header.
  • Network access to the Avisa API endpoint is required.

Troubleshooting

  • Authentication errors (401 Unauthorized): Ensure the API token is valid and correctly configured in the credentials.
  • Bad request errors (400 Bad Request): Verify that the phone number is in the correct international format and the message content is not empty.
  • Timeouts or network issues: Check network connectivity and API availability.
  • Error responses from API: The node captures error messages from the API and returns them in the output; review these messages for specific issues.

If the node throws unexpected errors, enabling "Continue On Fail" can help process remaining items while logging errors.

Links and References

Discussion