Whats2API icon

Whats2API

Consume Whats2API

Actions3

Message → Send Text

AI-generated

Summary

Send a text message via WhatsApp to a specified phone number or JID, automatically appending '@s.whatsapp.net' if only digits are provided.

Inputs

  • To (JID or Phone Number) (required) — The recipient's phone number or JID. If only digits are provided, '@s.whatsapp.net' will be appended automatically.
  • Text (required) — The text content to send in the message.

Output shape

a JSON object per input item indicating success or failure, including the API response data on success and detailed debug information for each sent message

The operation processes all input items individually and returns a JSON array of results for each. In case of errors, detailed error messages with HTTP status and response body are included.

Examples

Example 1: Sending a text message to a WhatsApp phone number

Set 'To (JID or Phone Number)' to a phone number like '5511999999999', and 'Text' to the message content.

Links

Discussion