GET
/
api
/
v1
/
history
/
query
curl --request GET \
  --url https://api.harvey.ai/api/v1/history/query \
  --header 'Authorization: Bearer <token>'
[
  {
    "event_id": 103230489,
    "Time": "2024-09-03T14:47:12.000Z",
    "User": "user@example.com",
    "Task": "Assist",
    "Client Matter #": 1234.56,
    "Source": "Files",
    "Query": "Tell me a joke.",
    "Response": "What do you call a fish that wears a bowtie? Sofishticated.",
    "Documents": "2020-11-20 Jokes - Amended.pdf",
    "Number of documents": 1
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_time
integer
required

UTC epoch timestamp, up to 2023-07-14

end_time
integer
required

UTC epoch timestamp, up to 30 days from start_time

Response

200
application/json

Array of events with QueryHistory entries

The response is of type object[].