Repositories and search
Search repository
Search the indexed documents in one repository and get ranked passages back.
POST
Searches one repository by meaning and returns the best-matching passages, highest score first. A passage matches when it says what
query asks about, even in different words. The call is synchronous: results come back in the same response.
Only documents that are indexed are searched. Documents still pending are skipped without an error. To search many repositories at once, use Search knowledge.
With folder_id, the search ranks the repository’s 100 best passages and keeps the ones in the folder and its subfolders. A folder search can therefore return fewer than limit results.
Authentication
Requires an API key, or an OAuth token withrepositories:read.
Path parameters
Body parameters
What to look for, up to 1,000 characters. A question or a phrase both work, for example
"break clause notice period".Response
Returns200 with { "items": [...] }. There is no cursor: raise limit for more results.