Repositories and search
Create Repository
Create an empty repository to hold and search documents.
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.Authentication
Requires an API key, or an OAuth token withrepositories:write. The caller’s role must allow creating repositories.
Body parameters
string
required
The repository name, up to 200 characters. Names do not have to be unique.
string
What the repository holds, up to 2,000 characters. Shown in the app and returned by the API.
Response
Returns201 with the new repository. document_count is 0 and indexing_status is idle.
string
idle once every document is indexed, indexing while any document is still waiting, failed when any document could not be indexed.