Send image to a contact or group
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the image |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: [email protected] for contacts or [email protected] for groups |
image | object | ✅ Yes | Object containing the image data |
image.content | string | ✅ Yes | Image content encoded in base64 |
image.mimetype | string | ❌ No | Image MIME type (e.g., image/png, image/jpeg). If not specified, will be detected automatically |
image.filename | string | ❌ No | Image file name |
caption | string | ❌ No | Caption/text accompanying the image |
200 - Image sent successfully400 - Invalid parameters or image corrupted401 - Unauthorized session404 - Session not found413 - Image too largeYour Wappfy API key (get it at dash.wappfy.com.br)
Chat ID (WhatsApp JID)
Image file (remote URL or base64 data)
Session name (instanceName)
"my-session"
Message ID you want to reply to
null
Caption/text that accompanies the image
The response is of type object.