Skip to main content

Get a shared file or directory

GET 

/api/v1/shares/:id

Returns the shared item, or an item inside a shared folder selected by path, as an entry; with type=raw or type=download it returns the file contents. This is the endpoint behind share links. raw sends the file inline and download as an attachment. raw on a directory redirects to the share in the app; download on a directory returns 417. When a password-protected share is not unlocked yet, raw and download redirect to the password page /share-password/{id}?returnTo=… instead of returning 423, so browsers opening a link land on the prompt. Public links and email shares work for anyone, without a session; user and group shares only for the receiving user or group members. Expired shares return 404.

Request​

Responses​

Entry, or file bytes when type is raw or download.