Search
The following paths are relative to /api/v1 and require authentication.
Endpoints
Section titled “Endpoints”| Method | Path | Description |
|---|---|---|
GET | /search | Search files and folders in the current user’s personal space |
GET | /teams/{team_id}/search | Search files and folders in the specified team workspace |
Query parameters
Section titled “Query parameters”Common parameters:
q: fuzzy name match, case-insensitivetype:file,folder, orall, defaultallmime_type: exact MIME filter for filescategory: file category filter, supportsimage,video,audio,document,spreadsheet,presentation,archive,code,otherextensions: file-extension filter, preferably a comma-separated string such aspdf,docx,tar.gzmin_size/max_size: file-size filtercreated_after/created_before: RFC3339 timestampsfolder_id: narrow the search scope to one foldertag_ids: comma-separated tag IDs such as1,2,3tag_match: tag matching mode,anyorall, defaultanylimit: per-resource-type cap, default50, max100offset: offset
Validation rules:
created_after/created_beforemust be valid RFC3339 timestamps, or the API returns400- If both are present,
created_after <= created_beforemust hold categorymust be one of the listed valuesextensionscannot be empty, cannot contain empty segments, and cannot contain path separators or invalid characters- Extensions are normalized to lower-case without a leading dot
categoryandextensionsare file-only filters; if they are sent together withtype=folder, the API returns400tag_matchmust beanyoralltag_idscannot contain empty segments, must contain positive integer IDs, and cannot contain more than 64 IDs- every tag ID must exist in the current personal or team workspace; tags from another workspace are treated as not found
Response shape
Section titled “Response shape”The response contains two result sets:
filesfolderstotal_filestotal_folders
The files and folders items reuse the list-item shape from the regular listing APIs, so they include state such as is_locked, is_shared, and tags. File items also include extension, compound_extension, and file_category.
Current semantics
Section titled “Current semantics”/searchsearches only the current user’s personal space/teams/{team_id}/searchfirst verifies team access, then searches that workspace- items already in trash are omitted
type=foldernever returns filestype=filenever returns foldersfolder_idfilters files byfolder_idand folders byparent_idtag_idsfilters both files and folders through entity tag bindings;tag_match=anyreturns items with at least one requested tag, whiletag_match=allrequires every requested tagcategoryprefers the persisted extension-based classification, and falls back to MIME only when needed- compound extensions are persisted only for explicitly supported suffixes such as
tar.gz