WhatsApp (WABA)
Send WhatsApp Media
Send an image, video, audio, or document via WhatsApp Business API
POST
Sends a media message (image, video, audio, or document) to a contact through a WABA channel. You can provide a public URL or a base64-encoded file.
Headers
Your API key for authentication.
Body
UUID of the WABA channel to send from.
UUID of the contact to message.
Type of media to send. Possible values:
image, video, audio, document.Either a publicly accessible URL (e.g.
https://example.com/image.jpg) or a base64-encoded string of the file. If base64, the file is uploaded to storage automatically.Optional caption for the media (text displayed below the file).
Original filename for document types (e.g.
invoice.pdf). Defaults to a generated name based on media type.UUID of an existing thread. If provided,
channel_id and contact_id are inferred automatically.Whether to save the message in the conversation thread. Defaults to
true.Response
true if the media was sent successfully.Error Codes
400 Bad Request— Missing required fields, invalid channel type, or invalid media data401 Unauthorized— Invalid or missing API key404 Not Found— Contact not found500 Internal Server Error— Upload or Meta API failure
