Actions2
Send Message
AI-generatedSummary
Send a WhatsApp message to a specified recipient or group using the Zender API, supporting text, media, or document message types with customizable priority.
Inputs
- recipient (required) — Recipient phone number in E.164 format or group address.
- type (required) — Message type: 'text', 'media', or 'document'.
- message (required) — Message text or caption to send (spintax supported).
- priority — Message sending priority: 1 for high (immediate), 2 for normal. Defaults to 2.
- mediaUrl (required) — For media messages only: direct URL to the media file (jpg, png, gif, mp4, mp3, ogg).
- mediaType (required) — For media messages only: type of media file - 'image', 'audio', or 'video'.
- documentUrl (required) — For document messages only: direct URL to the document file.
- documentName (required) — For document messages only: document file name with extension (e.g., document.pdf).
- documentType (required) — For document messages only: document type - pdf, xml, xls, xlsx, doc, or docx.
Output shape
a list of JSON objects, each representing the result of sending a message for each input item.
Each output item includes properties 'success' (boolean), 'operation' ('sendMessage'), 'recipient', 'message', 'type', and 'response' which contains the API response. Errors are thrown unless 'Continue on Fail' is enabled, in which case error details are included.