Skip to main content

Get file content by the public link for folder

note

[Since 2021.04]

Get file content by the public link for folder.

POST /api/v1/public/{linkUid}/{fileId}/content HTTP/1.1
  1. Path parameters
ParameterDescription
linkUidThe UID of the link for the folder.
fileIdThe file id.
  1. Request parameters
ParameterDescription
accessTokenThe access token for file
  1. Example request
curl 'http://localhost:8080/api/v1/public/fa90864f-305e-4461-b692-b8ce6eba1773/189377641/content?accessToken=wicwfqcfsafgrpwxjbgppgmbhxixwpej' -i -X GET \
-H 'X-co-auth-token: fde99812fd52fe2b0e1e7ed4bf48f3e5' \
-H 'If-None-Match: fa90864f-305e-4461-b692-b8ce6eba1773'
  1. Example response headers
HTTP/1.1 200 OK
X-co-request-id: 493845366b4e78505130597265386745
Content-Disposition: attachment; filename*=UTF-8''testfile.txt
Content-Length: 20
Content-Type: text/plain
[ content of the response is skipped ]