WAMANAGER

Search Documentation

Search through pages and content

Image Message

Image Message

Example of an image message on WhatsApp

Image messages are messages that display a single image and an optional caption.

cURL
curl -X POST '<BASE_URL>/api/whatsapp/image' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
  "contacts": [
    "<WHATSAPP_USER_PHONE_NUMBER>"
  ],
  "caption": "Check out this photo!",
  "url": "https://example.com/image.jpg"
}'

Parameters

ParameterTypeDescriptionExample
ACCESS_TOKENString
Required
Whatsapp external api authorization token provided by business account.
ERYHCDIRMWORYFFEXESJDKR6SAZABA
CONTACTSArray
Required
Array of WhatsApp user phone numbers with country code.
["<WHATSAPP_USER_PHONE_NUMBER>"]
MEDIA_URLBoolean
Required
URL of the image media asset hosted on your public server.
https://example.com/image.jpg
MEDIA_CAPTION_TEXTString
Optional
Media asset caption text.
Maximum 1024 characters.
Check out this photo!

Supported Image Formats

Images must be 8-bit, in RGB or RGBA color space.

Image TypeExtensionMIME TypeMax Size
JPEG.jpegimage/jpeg5 MB
PNG.pngimage/png5 MB

Video Message

Video Message

Example of a video message on WhatsApp

Video messages display a thumbnail preview of a video image with an optional caption. When the WhatsApp user taps the preview, it loads the video and displays it to the user.

cURL
curl -X POST '<BASE_URL>/api/whatsapp/video' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
  "contacts": [
    "<WHATSAPP_USER_PHONE_NUMBER>"
  ],
  "caption": "Check out this video!",
  "url": "https://example.com/video.mp4"
}'

Parameters

ParameterTypeDescriptionExample
ACCESS_TOKENString
Required
Whatsapp external api authorization token provided by business account.
ERYHCDIRMWORYFFEXESJDKR6SAZABA
CONTACTSArray
Required
Array of WhatsApp user phone numbers with country code.
["<WHATSAPP_USER_PHONE_NUMBER>"]
MEDIA_URLBoolean
Required
URL of the video media asset hosted on your public server.
https://example.com/video.mp4
MEDIA_CAPTION_TEXTString
Optional
Media asset caption text.
Maximum 1024 characters.
Check out this video!

Supported Video Formats

Only H.264 video codec and AAC audio codec supported. Single audio stream or no audio stream only.

Video TypeExtensionMIME TypeMax Size
MP4 Video.mp4video/mp416 MB
3GPP.3gpvideo/3gpp16 MB

Document Message

Document Message

Example of a document message on WhatsApp

Document messages are messages that display a document icon, linked to a document, that a WhatsApp user can tap to download.

cURL
curl -X POST '<BASE_URL>/api/whatsapp/document' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
  "contacts": [
    "<WHATSAPP_USER_PHONE_NUMBER>"
  ],
  "caption": "Your order confirmation (PDF)",
  "url": "https://example.com/order.pdf",
  "filename": "order.pdf"
}'

Parameters

ParameterTypeDescriptionExample
ACCESS_TOKENString
Required
Whatsapp external api authorization token provided by business account.
ERYHCDIRMWORYFFEXESJDKR6SAZABA
CONTACTSArray
Required
Array of WhatsApp user phone numbers with country code.
["<WHATSAPP_USER_PHONE_NUMBER>"]
MEDIA_URLBoolean
Required
URL of the document media asset hosted on your public server.
https://example.com/order.pdf
MEDIA_FILENAMEString
Optional
Media asset file name.
order.pdf
MEDIA_CAPTION_TEXTString
Optional
Media asset caption text.
Maximum 1024 characters.
Your order confirmation (PDF)

Supported Document Formats

Document TypeExtensionMIME TypeMax Size
Text.txttext/plain100 MB
Microsoft Excel.xlsapplication/vnd.ms-excel100 MB
Microsoft Excel.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet100 MB
Microsoft Word.docapplication/msword100 MB
Microsoft Word.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document100 MB
Microsoft PowerPoint.pptapplication/vnd.ms-powerpoint100 MB
Microsoft PowerPoint.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation100 MB
PDF.pdfapplication/pdf100 MB

Audio Message

Audio Message

Example of an audio message on WhatsApp

Audio Messages are used to share voice notes or sound files (MP3, OGG, etc.).

cURL
curl -X POST '<BASE_URL>/api/whatsapp/audio' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
  "contacts": [
    "<WHATSAPP_USER_PHONE_NUMBER>"
  ],
  "url": "https://example.com/audio.mp3"
}'

Parameters

ParameterTypeDescriptionExample
ACCESS_TOKENString
Required
Whatsapp external api authorization token provided by business account.
ERYHCDIRMWORYFFEXESJDKR6SAZABA
CONTACTSArray
Required
Array of WhatsApp user phone numbers with country code.
["<WHATSAPP_USER_PHONE_NUMBER>"]
MEDIA_URLBoolean
Required
URL of the audio media asset hosted on your public server.
https://example.com/audio.mp3

Supported Audio Formats

Audio TypeExtensionMIME TypeMax Size
AAC.aacaudio/aac16 MB
AMR.amraudio/amr16 MB
MP3.mp3audio/mpeg16 MB
MP4 Audio.m4aaudio/mp416 MB
OGG Audio.oggaudio/ogg (OPUS codecs only; base audio/ogg not supported; mono input only)16 MB

Sticker Message

Sticker Message

Example of a sticker message on WhatsApp

Sticker Messages let you send WebP sticker files.

cURL
curl -X POST '<BASE_URL>/api/whatsapp/sticker' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-d '{
  "contacts": [
    "<WHATSAPP_USER_PHONE_NUMBER>"
  ],
  "url": "https://example.com/sticker.webp"
}'

Parameters

ParameterTypeDescriptionExample
ACCESS_TOKENString
Required
Whatsapp external api authorization token provided by business account.
ERYHCDIRMWORYFFEXESJDKR6SAZABA
CONTACTSArray
Required
Array of WhatsApp user phone numbers with country code.
["<WHATSAPP_USER_PHONE_NUMBER>"]
MEDIA_URLBoolean
Required
URL of the sticker media asset hosted on your public server.
https://example.com/sticker.webp

Supported Sticker Formats

Sticker TypeExtensionMIME TypeMax Size
Animated sticker.webpimage/webp500 KB
Static sticker.webpimage/webp100 KB