CodeChat - WhatsApp Free Api icon

CodeChat - WhatsApp Free Api

Rest api for communication with WhatsApp

Overview

This node enables sending WhatsApp messages via a REST API, specifically supporting the "Send Location" operation under the "Send Message" resource. It allows users to send geolocation information (latitude and longitude) along with optional descriptive details such as location name and address to a specified recipient's phone number.

Common scenarios include:

  • Sharing a meeting point or event location with contacts.
  • Sending delivery or pickup locations in customer service workflows.
  • Broadcasting location updates in logistics or field operations.

Example: A user can input a recipient's phone number, specify latitude and longitude coordinates of a venue, optionally add a location name and address, and send this location directly through WhatsApp.

Properties

Name Meaning
Recipient The phone number of the message recipient including country code (e.g., 5531900000000).
Delay Optional delay in milliseconds before sending the message (e.g., 1200 ms).
Presence Status indicator while sending the message; options include Available, Composing, Paused, etc.
Location Name Optional name/title for the location being sent (e.g., "Central Park").
Address Optional textual address corresponding to the location.
Latitude Required geographic latitude coordinate of the location.
Longitude Required geographic longitude coordinate of the location.

Output

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

If binary data were involved (not indicated here), it would represent media content, but this node focuses on JSON responses related to message sending.

Dependencies

  • Requires an API key credential for authenticating with the WhatsApp REST API.
  • Needs configuration of the base URL for the WhatsApp API instance.
  • Relies on the external WhatsApp Free API service endpoint to send location messages.

Troubleshooting

  • Invalid Phone Number: Ensure the recipient number includes the correct country code and is formatted properly.
  • Missing Coordinates: Latitude and longitude are required; missing these will cause errors.
  • API Authentication Errors: Verify that the API key credential is correctly configured and has necessary permissions.
  • Network Issues: Check connectivity to the WhatsApp API endpoint and ensure no firewall blocks.
  • Delay Misconfiguration: Delay should be a non-negative integer; invalid values may cause unexpected behavior.

Common error messages might indicate authentication failure, invalid parameters, or rate limiting by the API provider. Resolving these involves checking credentials, input validation, and respecting API usage limits.

Links and References

Discussion