Skip to main content
POST
cURL
Use the queryCorpus Tool
Any agents that you deploy should use the built-in queryCorpus tool.
This endpoint should be use for testing.

Authorizations

X-API-Key
string
header
required

API key

Path Parameters

corpus_id
string<uuid>
required

Body

application/json

A request to query a corpus.

query
string

The query to run.

maxResults
integer<int32>

The maximum number of results to return.

Response

200 - application/json
content
string

The content of the retrieved chunk.

score
number<double>

The score of this chunk, with higher scores indicating better matches.

citation
object

A citation for this chunk.