Listing files
List all files
GET https://<service_host>/file/v2/orgs/<org_id>/workspaces/<workspace_id>/files?created_at=<created_at>&author=<author_id>&file_name=<file_name>
You can list all files in a workspace using the "list files" endpoint. This endpoint accepts a few filters which can help when searching:
created_at: an ISO 8601 formatted timestamp in the UTC (Z) timezone. Supports date operators:gt,gte,lt,lte. Example:created_at=gte:2023-03-10T04:25:03Z.author_id: UUID of the user that created the file.file_name: filter by filename, excluding its folder path. See Filename filtering.
When listing files, the response will always include the latest version of each file.
Filter by folder
By default, the workspace listing includes files across the workspace.
Use folder_id to select a folder and its descendants.
folder_depth specifies the maximum number of folder levels below the selected folder to include.
It requires folder_id.
By default, all descendant levels are included.
The organisation-wide listing covers accessible workspaces and does not support these folder filters.
Pagination
Pagination links (self, prev, and next) preserve the supplied filters and sorting.
For both workspace and organisation listings, if deleted is omitted from the request, it is also omitted from these links, and the listing continues to return non-deleted files by default.
Explicit deleted=true or deleted=false values are retained.
The deleted parameter is described as a nullable boolean in OpenAPI.
Omit it to use the default non-deleted listing; deleted=null and an empty deleted= are not valid boolean query values.
Filename filtering
Both workspace and organisation listings support file_name:
- Workspace:
GET /file/v2/orgs/<org_id>/workspaces/<workspace_id>/files - Organisation:
GET /file/v2/orgs/<org_id>/files
Always use an explicit operator followed by a colon and a value, for example file_name=eq:gold.csv.
Operator prefixes are case-insensitive.
Unprefixed values are a legacy format retained for backwards compatibility; do not use them in new integrations.
| Operator | Matching behaviour | Case-sensitive |
|---|---|---|
eq | Matches the whole filename literally | No |
neq | Excludes a whole-filename literal match | No |
like | Matches a wildcard pattern against the whole filename | Yes |
nlike | Excludes filenames matching a wildcard pattern | Yes |
ilike | Matches a wildcard pattern against the whole filename | No |
nilike | Excludes filenames matching a wildcard pattern | No |
| None (legacy) | Literal substring anywhere in the filename | No |
For a case-insensitive substring search, use file_name=ilike:*gold*, which matches allgoldcolumns.csv.
For comparison, file_name=eq:gold.csv matches gold.csv or GOLD.CSV, but not old-gold.csv.
For legacy compatibility, an unrecognised prefix is treated as part of the literal substring rather than as an operator.
Use one of the supported prefixes listed above.
Wildcards and escaping
For like, ilike, nlike, and nilike:
*matches zero or more characters. For example,like:gold*.csvmatchesgold.csvandgold-assays.csv.\*matches a literal star.\\matches a literal backslash.- A backslash escapes the next character, even if it is not a star or backslash.
For example,
like:gold\qmatchesgoldq. - A trailing backslash is treated literally.
- Other characters, including
?,[and., are literal, not regular-expression syntax.
With eq or neq, and in the legacy unprefixed format, stars and backslashes are literal characters; wildcard and escape processing does not apply.
Combining filters
Repeat file_name to supply multiple expressions.
Positive expressions (eq, like, ilike, and legacy unprefixed values) are combined with OR.
Exclusions (neq, nlike, and nilike) are combined with AND and apply to all positive matches.
Exclusions can also be used without any positive expressions.
For example:
This returns CSV or TXT files, excluding names beginning with temp, regardless of case.
Other filters, such as author or creation date, must also be satisfied.
Pass repeated values through your HTTP client's query-parameter support so they are URL-encoded correctly. Pagination links preserve each filename expression, including its operator and escapes.
Invalid values
Each filename expression must have a non-empty value and must not contain a forward slash (/).
For example, file_name=eq: and file_name=eq:folder/gold.csv are rejected with HTTP 422.
If any repeated expression is invalid, the entire request is rejected.