Repositories and search
Create Folder
Create a folder in a repository, at the top level or inside another folder.
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.id as folder_id to Add Documents to put documents in it. A folder synced from a connected source takes no new folders or documents.
Authentication
Requires an API key, or an OAuth token withrepositories:write. The caller also needs edit access to the repository.
Path parameters
string
required
The repository id.
Body parameters
string
required
The folder name, up to 200 characters.
string
The folder to create this one inside. Leave it out to create a top-level folder.
Response
Returns201 with the new folder: id, name and parent_id.