Send video, audio, image, document
POST
/waInstance{{idInstance}}/sendFileByUpload/{{apiTokenInstance}}Documentation SendFileByUpload
Request
Body Params multipart/form-data
chatId
string
required
Chat Id
Example:
790012345673442@c.us
caption
string
optional
File caption. Caption added to video, images. The maximum field length is 20000 characters.
Example:
Description
file
file
required
Outgoing file
fileName
string
required
File name. Must contain file extension. Requires UTF-8 encoding without BOM. For example: test.jpg
Example:
window.jpg
quotedMessageId
string
optional
Quoted message Id. If present, the message will be sent quoting the specified chat message.
Request samples
Responses
sendFileByUpload(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
idMessage
string
required
urlFile
string
required
ExamplesendFileByUpload
{
"idMessage": "3EB0C767D097B7C7C030",
"urlFile": "https://sw-media-out.storage.yandexcloud.net/1101776123/c1aabd48-c1c2-49b1-8f2d-f575a41777be.jpg"
}
Last modified: 18 days ago