Repositories and search
List Folders
List the folders in a repository, so you can find a folder_id to file or search documents by.
GET
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.parent_id: top-level folders have parent_id: null. Folders synced from a connected source are listed too.
Use a folder’s id as folder_id in Add Documents, List Documents or Search Repository.
Authentication
Requires an API key, or an OAuth token withrepositories:read.
Path parameters
string
required
The repository id.
Query parameters
string
Only the folders directly inside this folder. Leave it out to list every folder.
string
The
cursor from the previous page.integer
default:"50"
Folders per page, from
1 to 100.Response
Returns200 with a page of folders: id, name and parent_id. cursor is null on the last page.