Go W2A API icon

Go W2A API

Interact with Go W2A API

Message → Send

AI-generated

Summary

Send a message to a specified recipient with support for text, image, video, or document types.

Inputs

  • To (required) — Recipient phone number or JID.
  • Type (required) — Type of message to send: text, image, video, or document.
  • Text — Text content to send (required if type is text).
  • Link — URL of the file to send (required if type is image, video, or document).
  • Caption — Caption for the media file (optional for image, video, or document).

Output shape

a list of items each containing JSON with the API response details for the sent message

The output contains the API response converted to JSON for each input item. Supports processing multiple items individually. Errors return an error message object if 'continueOnFail' is enabled.

Examples

Example 1: Send a text message to a recipient

Set 'To' to recipient JID, set 'Type' to 'text', and provide the message text in 'Text'.

Example 2: Send an image with a caption

Set 'To' to recipient JID, set 'Type' to 'image', provide the image URL in 'Link', and optionally add a 'Caption'.

Links

Discussion