Send a media file (image, video, document, audio) directly to a specified instance.
POST/message/sendMediaFile/:instanceName
Send a media file (image, video, document, audio) directly to a specified instance.
Request
Path Parameters
instanceName stringrequired
The name of the instance to which the media file should be sent.
Example: codechat
- multipart/form-data
Body
required
number stringrequired
The recipient's phone number.
caption string
Caption to accompany the media (optional).
attachment binaryrequired
The media file to be sent.
mediatype stringrequired
Possible values: [image
, document
, video
, audio
]
Type of the media content.
presence string
Possible values: [composing
, recording
, paused
]
Indicates the sender's action/status (optional).
delay integer
Delay time before sending the message (optional).
Responses
- 200
Successful response
- application/json
- Schema
Schema
- any
Loading...