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.
Searches several repositories by meaning and returns the best-matching passages across them, highest score first. The call is synchronous: results come back in the same response. There is no single index across repositories. This endpoint searches each repository’s index, up to five at a time, and merges the passages by score. One call searches at most 20 repositories:
  • With repository_ids, it searches those, up to 20.
  • Without it, it searches the 20 repositories you can read that were used most recently.
searched_repository_ids lists the repositories the search covered. A repository whose index does not answer in time is left out of it rather than failing the search. To search one repository, or one folder in it, use Search Repository.

Authentication

Requires an API key, or an OAuth token with repositories:read.

Body parameters

string
required
What to look for, up to 1,000 characters. A question or a phrase both work, for example "limitation of liability cap".
string[]
Only search these repositories, from 1 to 20. Leave it out to search the 20 most recently used repositories the caller can read.
integer
default:"10"
The most results to return, from 1 to 50.

Response

Returns 200 with the passages and the repositories searched. There is no cursor: raise limit for more results.
object[]
Best match first. Each item is one passage, so one document can appear more than once.
string[]
The repositories this search covered.

Errors