Send an image
Messaging
Send Image
Send image to a contact or group
POST
Send an image
Description
This endpoint allows you to send images to individual contacts or groups on WhatsApp. The image must be sent in base64 format. Optionally, you can add a caption to the image.Body
Body Parameters
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the image |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us 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 |
Status Codes
200- Image sent successfully400- Invalid parameters or image corrupted401- Unauthorized session404- Session not found413- Image too large
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Chat ID (WhatsApp JID)
Example:
"5511999999999@c.us"
Image file (remote URL or base64 data)
- Option 1
- Option 2
Session name (instanceName)
Example:
"my-session"
Message ID you want to reply to
Example:
null
Caption/text that accompanies the image
Response
201 - application/json
The response is of type object.
