Get a file or directory
GET/api/v1/files
Returns the file or directory at path as an entry with its metadata, or with type=raw or type=download the file contents. A directory entry lists its children in files, with favorites, shares and preview URLs attached.
path=/shares returns a virtual directory of everything other users shared with the caller, and path=/groupfolders one of the group folders the caller belongs to. raw sends the file inline and adds it to the caller's recent files, unless recent=false; download sends it as an attachment. Neither works on directories, except that raw on a directory inside a share or group folder redirects to it in the app.
Signed-in users may read their home, group folders they belong to (any role) and shares they receive; share paths also work without a session when the share is a public link or email share.
A password-protected share returns 423 until it is unlocked with POST /api/v1/shares/{id}/unlock. A path that does not start with /home, /shares or /groupfolders returns 404.
Request
Responses
- 200
- 301
- 400
- 401
- 403
- 404
- 417
- 423
Entry, or file bytes when type is raw or download.
type=raw on a share or group folder directory. Redirects to the directory in the app.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.