CodeChat - WhatsApp Free Api icon

CodeChat - WhatsApp Free Api

Rest api for communication with WhatsApp

Overview

This node integrates with a WhatsApp messaging API to send text messages to specified phone numbers. It is useful for automating communication workflows such as customer notifications, alerts, or marketing messages via WhatsApp. For example, you can use it to send appointment reminders, order updates, or support responses directly to users' WhatsApp accounts.

The "Send Text" operation under the "Send Message" resource allows sending plain text messages with optional presence status and delivery delay.

Properties

Name Meaning
Recipient The phone number of the message recipient including country code (e.g., 5531900000000).
Delay Optional delay in milliseconds before the message is delivered (e.g., 1200 ms).
Presence Status to indicate your presence while sending the message. Options: Available, Composing, Paused, Recording, Unavailable, or Empty (no status).
Text Message The content/body of the text message to be sent (maximum 4096 characters).

Output

The node outputs JSON data representing the response from the WhatsApp API after attempting to send the message. This typically includes confirmation of message delivery status or error details if the send failed.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the WhatsApp API service.
  • The base URL for the API must be configured in the node credentials.
  • The node uses HTTP POST requests to send messages to the endpoint /message/sendText/{instanceName}/.

Troubleshooting

  • Invalid phone number format: Ensure the recipient number includes the correct country code without extra symbols or spaces.
  • Message too long: The text message body must not exceed 4096 characters.
  • Authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
  • Network or API errors: Check connectivity and API availability; the node ignores HTTP status errors but will report them in output.
  • Delay property typo: Note that the property name for delay is "dalay" (likely a typo), so ensure this is correctly set or adjusted in the workflow.

Links and References

Discussion