Skip to main content

Get file’s content for view

Get file content with inline disposition.

note

[Since 2019.01]

POST /api/v1/files/{fileId}/view HTTP/1.1
  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
  1. Example request
curl 'http://localhost:8080/api/v1/files/189392086/view' –I \
-X GET \
-H 'X-co-auth-token: 07b129496c0aa6bcc611c88a4c049f7f'
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 4750746f677345583430355153554978
Content-Disposition: inline
Content-Type: text/plain
Content-Length: 20
[ content of the response is skipped ]