Skip to content
Send messages

Send image

Send an image by passing a public HTTPS URL in image.link. WhatsApp fetches the asset server-side; you don’t upload anything through Kirim.

Terminal window
curl -X POST \
https://api.kirim.chat/v1/$PHONE_ID/messages \
-H "Authorization: Bearer $KIRIM_KEY" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"to": "+628123456789",
"type": "image",
"image": {
"link": "https://cdn.example.com/promo.jpg",
"caption": "Promo akhir bulan — diskon 30%"
}
}'
FieldConstraint
image.linkPublic HTTPS URL; either link or id (not both)
image.idMeta-uploaded media id (advanced — see Meta docs)
image.captionOptional, ≤ 1024 chars
FormatJPG, PNG
Max size5 MB