Send File / Media
Send an image, video, audio, or document over WhatsApp via the ChatSyncs API, using a public media URL or a media_id from Upload Media. Use when a developer asks how to send a file/image/video to a WhatsApp number.
Sending a document
A document also needsmedia_name — the filename the recipient sees. Without it the API answers
media_name is required when media_type is document.
- With
media_url, any filename is accepted. Use the last part of the URL, such asinvoice.pdf. - With
media_id, pass themedia_namethat Upload Media returned. media_nameis only for documents. Leave it out for images, video and audio.
wa_message_id, which you can pass to
Get Delivery Message Status.Body
Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.
"API-KEY"
The WhatsApp account's phone number ID. Where to find it.
"PHONE-NUMBER-ID"
The subscriber's phone number, with country code, digits only.
"PHONE-NUMBER"
Public HTTPS URL of the file. Required if media_id isn't set.
"https://example.com/image.jpg"
A WhatsApp media ID from Upload Media or Graph. Required if media_url isn't set; requires media_type when used alone.
"1739230482390482"
One of image, video, audio, document. Required when using media_id alone, or when media_url has no file extension.
"image"
The filename shown to the recipient. Required when media_type is document (also when the type is inferred from the URL); not used for image, video or audio. With media_url any filename is accepted, such as the last part of the URL; with a media_id, pass the media_name that Upload Media returned.
"invoice.pdf"
Caption for an image, video, or document (not supported for audio). Falls back to message if omitted.
"Here's your invoice"

