Query a collection (retrieval preview)
POST/v1/projects/:project_id/knowledge/collections/:collection_id:query
Retrieval preview (API.md §4, K5): returns the chunks the collection would surface for a question — debuggable standalone, before any agent is bound to it. This is the …:query action; the path segment is {collection_id}:query.
Request
Responses
- 200
- 400
- 401
- 404
- 502
The chunks that matched, most relevant first.
The request was malformed or failed validation.
Missing or invalid credentials.
The resource does not exist (existence is not leaked).
The upstream runtime could not complete the operation.