Zappy
AI-generatedSummary
Send WhatsApp messages via the Zappy API using a configured instance.
Inputs
- instanceId (required) — The WhatsApp instance to send from (populated via API load options).
- to (required) — Recipient phone number (country code + number, no +).
- type — Message type: text, image, or document. Defaults to text.
- content (required) — Text content (required only when type is text).
- data (required) — File data in Base64 format (required only for image/document types).
- mimeType (required) — MIME type for the file (e.g., image/jpeg; required only for image/document types).
- caption — Optional caption for image or document messages.
- filename — Optional filename for document messages.
Output shape
A list of items, each containing the API response for the sent message.
If continue on error is enabled, failed items return an object with an error message.
Examples
Example 1: Send a text message to a phone number.
Type: text, Content: 'Hello world', To: '5511999999999'
Example 2: Send an image message with a caption.
Type: image, Data: [Base64 string], MimeType: image/jpeg, Caption: 'Check this out'
Example 3: Send a document file.
Type: document, Data: [Base64 string], MimeType: application/pdf, Filename: report.pdf