Messages

Send Image Message

Send an image with an optional caption.

Home/Docs/Send Image Message

Endpoint

Send an image with an optional caption.

Request
POST /sendImage

Authentication

Every request must include a Bearer token in the Authorization header. Missing or invalid API keys return 401 Unauthorized.

Header
Authorization: Bearer YOUR_API_KEY

Request Body

FieldTypeRequiredDescription
sessionstringYesSession ID
tostringYesRecipient phone number
urlstringNo*Publicly accessible image URL
datastringNo*Base64-encoded image data
captionstringNoImage caption

Response

FieldTypeDescription
idstringUnique message identifier
tostringRecipient phone number or group JID
contentstringMessage content, media reference, or caption
typestringMessage type: text, image, video, document, or ptt
timestampstringISO 8601 timestamp of when the message was sent
statusstringDelivery status such as sent, delivered, or read
fromMebooleanTrue when sent by the current session
senderstringSender phone number
recipientstringRecipient identifier

Examples

cURL
curl -X POST "https://api.example.com/sendImage" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "id": "msg_124",
  "to": "+1234567890",
  "content": "https://cdn.example.com/image.png",
  "type": "image",
  "timestamp": "2026-04-15T10:00:00.000Z",
  "status": "sent",
  "fromMe": true,
  "sender": "+1234567890",
  "recipient": "+1234567890"
}

Notes

  • Either url or data must be provided.