Skip to main content

Get file content

A request to retrieve file content.

POST /api/v1/files/{fileId}/content HTTP/1.1
  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
  1. Request parameters
ParameterDescription
downloadIf this flag set to true, Content-disposition: attach header will be set in response
  1. Example request
curl 'http://localhost:8080/api/v1/files/189338668/content?download=true' -i -X GET \
-H 'X-co-auth-token: 3bfc60de06d87b7503f740aaae204c59'
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 503239376a756f333844627362385047
Content-Disposition: attachment; filename*=UTF-8''testfile.txt
Content-Type: text/plain
Content-Length: 20
[ some example content is skipped ]