Skip to main content
POST
/
send-image
curl --request POST \
  --url https://zapi.hubmessage.io/channels/{channel_id}/token/{channel_token}/send-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "5511999999999",
  "image": "https://example.com/image.png",
  "caption": "Check out this image!",
  "viewOnce": false
}
'
{
  "zaapId": "3999984263738042930CD6ECDE9VDWSA",
  "messageId": "D241XXXX732339502B68",
  "id": "D241XXXX732339502B68"
}

Overview

Method for sending images. You can send the image in two ways: via URL or Base64.
When sending as Base64, you must include the prefix with the image type, for example: data:image/png;base64,. To validate, paste the full Base64 in the browser address bar and verify the image renders correctly.
The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.
File size limits and supported formats follow WhatsApp policies. See the official WhatsApp documentation for details.

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message Security panel

Body

application/json
phone
string
required

Recipient phone number (country code + area code + number)

Example:

"5511999999999"

image
string
required

Image URL or Base64 data

caption
string

Image caption

messageId
string

ID of an existing message to reply to

delayMessage
integer

Delay in seconds before sending (1-15)

Required range: 1 <= x <= 15
viewOnce
boolean
default:false

Send as view-once message

Response

Message sent successfully

zaapId
string

Internal identifier

messageId
string

WhatsApp message ID

id
string

Same value as messageId (compatibility)