Get a query history
GET/v2/queries/:query_id
Supported API Key Type:
Query ServicePersonal
The Get Query History API allows you to retrieve detailed history about a specific query that was made against a corpus. The response includes detailed information about the query, such as latency, the time it was executed, and the various stages in the query pipeline.
You specify the query_id and the response includes the id of the query, the query object, the chat_id, the time information about the query, and the spans object.
Request
Responses
- 200
- 403
- 404
The spans object provides information about the ordered parts of the query pipeline and you get information about what happens during each stage of the pipeline.
Permissions do not allow retrieving the query history.
Query history not found.