Skip to main content
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive 403 mcp_not_enabled. See the preview overview.
Creates a folder in a repository. Folders organise documents, and you can limit a search or a document list to one. Pass the new folder’s 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 with repositories: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

Returns 201 with the new folder: id, name and parent_id.

Errors