Upload media

In addition to your text contents, Dialoguewise also allows you to add media files, like images and documents. In order to upload the media files, do a POST to the endpoint UploadMedia. You will need to set the header with key file as a multi-part file.

Once the endpoint is called, you will now get a response which will contain the URL to the uploaded file.

Below are the list of file types that are allowed.

Type Allowed file types
Images .gif, .jpeg, .jpg, .png
Documents .pdf, .txt, .doc, .docx
Videos .mp4, .mov

Please note, file of size more than 10 MB are not allowed.