Get Query

One stored query with its request body, response body and the retrieved chunks in one normalised shape (`results[]`: rank, score, text, filename, document id and a page, time or sheet location, whether the query ran on v2 or v3). `query_id` is the id from `GET /v2/queries` or the `query_id` field of a query response. The `request_id` a query response returns (`req_...`) is accepted in its place, so a query can be fetched straight after running it. `body_status` says what came back: `available`, `archived` (bodies are archived 90 days after the query and only the summary remains) or `missing`. A query from another organization or environment is a 404, the same as an unknown id.

Path parameters

query_idstringRequired

Headers

authorizationstring or nullOptional

Response

Successful Response
query_idstring
body_statusstring
query_textstring or nullOptional
collection_namestring or nullOptional
environmentstring or nullOptional
statusstring or nullOptional
api_versionstring or nullOptional
created_atstring or nullOptional
latency_msinteger or nullOptional
result_countinteger or nullOptional
request_idstring or nullOptional
paramsobject or nullOptional
resultslist of objects or nullOptional
requestobject or nullOptional
responseobject or nullOptional
error_messagestring or nullOptional
error_typestring or nullOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
© 2026 Captain