Send Media File
POST/message/sendMediaFile/:instanceName
Send Media File
Request
Path Parameters
instanceName stringrequired
Required
Example: {{instance}}
- multipart/form-data
Body
- required
- optional
- required - file
- optional - composing | recording
- optional
- optional
number integer
caption string
attachment binary
mediatype string
-required - image | document | video | audio
presence string
delay integer
quotedMessageId integer
Responses
- 201
Created
Response Headers
X-Powered-By string
Content-Type string
Content-Length integer
ETag string
Vary string
Date string
Connection string
Keep-Alive string
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"id": 1883,
"keyId": "BAE57934C99793B0",
"keyFromMe": true,
"keyRemoteJid": "[email protected]",
"keyParticipant": "",
"pushName": "",
"messageType": "documentMessage",
"content": {
"url": "https://mmg.whatsapp.net/v/t62.7119-24/34666153_729845632173676_3343657073423871265_n.enc?ccb=11-4&oh=01_AdQFTYFkVXDFQHKtbynp7KFQikpM0ZD1ckpp--gyoU0Ugw&oe=659666542&_nc_sid=5e03e0&mms3=true",
"mimetype": "application/pdf",
"fileSha256": "HM8OAjW5ZyHhlVGOgx456596-gEesRssIGr5YXB4ORNQ=",
"fileLength": "92941",
"mediaKey": "WyPZ4dJdffdfewoX8NAG966mogAh0loGHGhjNoeT0dkQ=",
"fileName": "microsofit.pdf",
"fileEncSha256": "eSTo3k0lTaT+jMfIsG86nQfpOMStApr9lWFWsXsFQzg=",
"directPath": "/v/t62.7119-24/34666153_729836271923676_3343657073423871265_n.enc?ccb=11-4&oh=01_AdQFTYFkVXDFQHKtbynp7KFQikpM0ZD1ckpp--gyoU0Ugw&oe=659659B6&_nc_sid=5e03e0",
"mediaKeyTimestamp": "1701767428",
"contextInfo": {},
"caption": "Media"
},
"messageTimestamp": 1701767429,
"instanceId": 1,
"device": "web"
}
Loading...