Skip to main content

Get media from opened document

A request to get content of media file, that is bundled in already opened document.

POST /api/v1/documents/{docId}/media/{mediaId:.+} HTTP/1.1
  1. Path parameters
ParameterDescription
docIdThe ID of the file.
mediaIdThe ID of the media file.
  1. Request parameters
ParameterDescription
qualityQuality for returned picture ( S M L ) [Since 2017.01]
  1. Example request
curl 'http://localhost:9094/api/v1/documents/O3232hs18Aav0CUzW1X/media/3a43d901-66d8-467f-82e7-6aaad2984bcc' -H 'X-co-auth-token: 8705adfeb88111b472e089a6af6aa929'
  1. Example response
HTTP/1.1 200 OK
Content-Disposition: inline;filename=3a43d901-66d8-467f-82e7-6aaad2984bcc
Content-Type: image/png;charset=UTF-8
[ some example content ]