Uploading Media

Use the media node to upload, retrieve, or delete media.

If you use the media upload process rather than linking to a media URL, the file must be uploaded to the media volume. Once the upload is complete, you can send a message using the media ID.

The POST body of the API request must contain the binary media data and the Content-Type header must be set to the type of the media being uploaded. See the Supported Content-Types section below for information about supported Content-Types you can upload.

post/wab/v1/media

Request

  • Base URL
    https://apis.cequens.com/conversation
  • URL
    https://apis.cequens.com/conversation/wab/v1/media
  • Auth
    API key in header Authorization

Headers

Content-Typestring

Content-Type header must be set to the type of the media being uploaded. Supported Content- Types can be (image/jpeg, image/png, image/webp, video/mp4, video/3gpp, audio/aac, audio/mp4, audio/amr, audio/mpeg, audio/ogg; codecs=opus)

Response

200

Example response

{
  "media": [
    {
      "id": "<generated id>"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.