2Chat icon

2Chat

Sends data to 2Chat

Message → Send a WhatsApp Message

AI-generated

Summary

Send a WhatsApp message through a connected 2Chat number to a phone number or group. The operation can include text, a media URL, or a pinned location; when a pin is included with text, the text is omitted from the request.

Inputs

  • WhatsApp Number Name or ID (required) — Connected 2Chat WhatsApp number to send from. Choose a listed number or provide its ID.
  • To Number — Recipient phone number. Supply this or a WhatsApp group ID.
  • Message Text — Text to send. The source accepts a message with text, a URL, or a pin location, despite the UI marking this field required.
  • URL — Optional media URL to attach.
  • Pin Location — Optional location object with address, latitude, longitude, name, and URL fields. Supplying a pin causes any supplied message text to be cleared from the request.

Output shape

A list of JSON items from the 2Chat API response.

The node sends a POST request to the 2Chat whatsapp/send-message endpoint. Runtime validation requires at least one of Message Text, URL, or Pin Location, and at least one of To Number or WhatsApp Group ID. If both recipient fields are supplied, To Number takes precedence. Errors are raised unless the node is configured to continue on fail.

Links

Discussion