v1

latestOpenAPI 3.0.32026-08-06372327.3 KB
SendMessageController

Send a media message via a URL

The this endpoint allows you to send a media URL to a user. <br> The <strong>url</strong> parameter is the URL of the media to be sent. <br> The <strong>to</strong> parameter is the phone number of the user to send the media to. <br> The <strong>type</strong> parameter is the type of media to be sent. <br> The type of media can be one of the following:

<ul> <li><strong>image</strong> - an image</li> <li><strong>video</strong> - a video</li> <li><strong>audio</strong> - an audio file</li> <li><strong>ptt</strong> - an audio(ptt) file</li> <li><strong>ptv</strong> - an video(ptv) file</li> <li><strong>document</strong> - a document</li> <li><strong>sticker</strong> - a sticker</li> </ul> <br> The <strong>caption</strong> parameter is the caption of the media to be sent. <br> The <strong>mimeType</strong> parameter is the mimeType of the media.
post/rest/sendMessage/{instance_key}/mediaUrl

Path parameters

instance_keystring required

Request body

Response

Success