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 control over message delivery delay and presence status (e.g., showing typing or recording indicators).

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 sent (e.g., 1200 ms).
Presence Status indicator shown while sending the message. Options: Available, Composing, Paused, Recording, Unavailable, or Empty (no status).
Text Message The content/body of the text message to send (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 information about the success or failure of the message delivery request.

No binary data output is indicated by the source code.

Dependencies

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

Troubleshooting

  • Invalid Phone Number: Ensure the recipient number includes the correct country code and is formatted properly.
  • Message Too Long: The text message must not exceed 4096 characters.
  • Authentication Errors: Verify that the API key credential is correctly set up and has necessary permissions.
  • Network Issues: Check connectivity to the configured API base URL.
  • Delay Property Typo: Note that the property name for delay is misspelled as "dalay" in the input properties; this could cause the delay option to be ignored unless corrected.

Links and References

Discussion