Skip to main content
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

string
requerido
Your API key for authentication.

Body

string
requerido
UUID of the WABA channel to send from.
string
requerido
UUID of the contact to message.
string
requerido
Type of media to send. Possible values: image, video, audio, document.
string
requerido
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.
string
Optional caption for the media (text displayed below the file).
string
Original filename for document types (e.g. invoice.pdf). Defaults to a generated name based on media type.
string
UUID of an existing thread. If provided, channel_id and contact_id are inferred automatically.
boolean
predeterminado:"true"
Whether to save the message in the conversation thread. Defaults to true.

Response

boolean
true if the media was sent successfully.
object

Error Codes

  • 400 Bad Request — Missing required fields, invalid channel type, or invalid media data
  • 401 Unauthorized — Invalid or missing API key
  • 404 Not Found — Contact not found
  • 500 Internal Server Error — Upload or Meta API failure

Code Examples