Queries the specified corpus and returns the specified number of results
cURL
curl --request POST \ --url https://api.ultravox.ai/api/corpora/{corpus_id}/query \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "query": "<string>", "maxResults": 123 }'
[ { "content": "<string>", "score": 123, "citation": { "sourceId": "<string>", "documentId": "<string>", "publicUrl": "<string>", "title": "<string>" } } ]
API key
A request to query a corpus.
The response is of type object[].
object[]