post
https://waapi.app/api/v1/instances//client/action/send-media
Send a media file to a chat. Provide either mediaUrl (a publicly accessible URL) or mediaBase64 (base64-encoded file content with mediaName), but not both.
The chatId format varies depending on the chat type:
- Individual chat: {phone_number}@c.us (e.g. [email protected])
- Group chat: {group_id}@g.us (e.g. [email protected])
- Channel/Newsletter: {channel_id}@newsletter (e.g. 123456789@newsletter)
Supported media types:
- Images: jpg, jpeg, png, gif
- Videos: mp4, 3gp, mov
- Audio: mp3, wav, ogg, m4a
- Documents: pdf, doc, docx, txt, xlsx, etc
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
Loadingβ¦
401Unauthorized β invalid or missing bearer token
403Forbidden β insufficient permissions or account blocked
404Not found β instance does not exist or does not belong to you
409Conflict β instance is not ready
429Too many requests β rate limit exceeded
