v4
latestSwagger 2.02026-08-0343714211.7 MBList Folders by Path
List Folders by Path
Path parameters
Path to operate on.
Query parameters
Send cursor to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
Request a preview size. Can be small (default), large, xlarge, or pdf.
Search by field and direction. Valid fields are path, size, modified_at_datetime, provided_modified_at. Valid directions are asc and desc. Defaults to {"path":"asc"}.
If specified, will search the folders/files list by name. Ignores text before last /. This is the same API used by the search bar in the web UI when running 'Search This Folder'. Search results are a best effort, not real time, and not guaranteed to perfectly match the latest folder listing. Results may be truncated if more than 1,000 possible matches exist. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
If provided, the search string in search will search for files where this custom metadata key matches the value sent in search. Set this to * to allow any metadata key to match the value sent in search.
Search entire site? If true, we will search the entire site. Do not provide a path when using this parameter. This is the same API used by the search bar in the web UI when running 'Search All Files'. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
Include file previews?
Include file priority color information?
Type of objects to return. Can be folder or file.
If provided, will only return files/folders modified after this time. Can be used only in combination with type filter.
Response
A list of Folders objects.
Example response
[
{
"path": "path/file.txt",
"created_by_id": 1,
"created_by_api_key_id": 1,
"created_by_as2_incoming_message_id": 1,
"created_by_automation_id": 1,
"created_by_bundle_registration_id": 1,
"created_by_inbox_id": 1,
"created_by_remote_server_id": 1,
"created_by_sync_id": 1,
"custom_metadata": {
"key": "value"
},
"display_name": "file.txt",
"type": "file",
"size": 1024,
"created_at": "2000-01-01T01:00:00Z",
"last_modified_by_id": 1,
"last_modified_by_api_key_id": 1,
"last_modified_by_automation_id": 1,
"last_modified_by_bundle_registration_id": 1,
"last_modified_by_remote_server_id": 1,
"last_modified_by_sync_id": 1,
"mtime": "2000-01-01T01:00:00Z",
"provided_mtime": "2000-01-01T01:00:00Z",
"crc32": "70976923",
"md5": "17c54824e9931a4688ca032d03f6663c",
"sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"mime_type": "application/octet-stream",
"region": "us-east-1",
"permissions": "rwd",
"subfolders_locked?": true,
"is_locked": true,
"download_uri": "https://mysite.files.com/...",
"direct_connection_info": {
"version": 1,
"server_name": "example",
"addresses": [
"example"
],
"direct_uri": "example",
"ca_pem": "example"
},
"priority_color": "red",
"preview_id": 1,
"preview": {
"id": 1,
"status": "complete",
"download_uri": "https://mysite.files.com/...",
"type": "image",
"size": "large"
}
}
]