file
Get
Retrieves file/directory information or downloads a file.
Path parameter
- path: the path to the file/directory relative to the user data root (default value is ”/”, the user data root directory itself)
Query parameters
- option: controls the behavior of the API
- default (None): retrieves file/directory information Returns a Content Pydantic object containing information on the target path
- “download”: downloads a file (directory download is not possible) Streams the file content or does the download and returns nothing, depending on the client request
GET
/
fm
/
api
/
v1
/
contents
/
{path}
Authorizations
Enter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here