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
- 200
- 301
- 302
- 400
- 403
- 404
- 417
- 423
Entry, or file bytes when type is raw or download.
type=raw on a directory. Redirects to the share in the app.
type=raw or type=download on a locked share. Redirects to the password page.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.