Skip to main content

Send a Media Message

POST /v1/notify/:channel/media
X-Api-Key: notifo_live_...
Content-Type: application/json

Request body

{
"to": "+905551234567",
"type": "image",
"url": "https://example.com/photo.jpg",
"caption": "Here is your invoice",
"channelAccountId": "acc_01j...",
"idempotencyKey": "invoice-42"
}
FieldTypeRequiredDescription
tostringyesRecipient
typeenumyesimage, video, audio, document
urlstringnoPublicly accessible URL of the file
captionstringnoCaption shown below media (max 1024 chars)
filenamestringnoFilename hint for documents (max 255 chars)
channelAccountIdUUIDnoSpecific account to use
idempotencyKeystringnoDeduplication key (max 100 chars)

Supported media types

typeFormatsMax size
imageJPEG, PNG, WebP5 MB
videoMP4, 3GP16 MB
audioMP3, OGG, AAC16 MB
documentPDF, DOCX, XLSX, etc.100 MB

Response 202 Accepted

{
"id": "msg_01j...",
"provider": "whatsapp",
"to": "+905551234567",
"type": "image",
"status": "queued",
"body": {
"type": "image",
"url": "https://example.com/photo.jpg",
"caption": "Here is your invoice"
},
"createdAt": "2025-01-01T12:00:00.000Z"
}
curl -X POST https://api.notifo.cloud/v1/notify/whatsapp/media \
-H "X-Api-Key: notifo_live_abc123" \
-H "Content-Type: application/json" \
-d '{
"to": "+905551234567",
"type": "image",
"url": "https://example.com/photo.jpg",
"caption": "Your photo"
}'