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}
Copy
curl --request GET \ --url https://your-engine-url/fm/api/v1/contents/{path} \ --header 'Authorization: <api-key>'
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}
Copy
curl --request GET \ --url https://your-engine-url/fm/api/v1/contents/{path} \ --header 'Authorization: <api-key>'