Queries History
GET/v1/queries/
Fetch history of queries sorted by Timestamp in Descending order.
Request
Query Parameters
limit any
Limit number of returned queries per page
offset any
Offset used for pagination
Responses
- 200
Queries Listing
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
requires
items object[]
id numberrequired
Internal ID of the query
username stringrequired
Name of the user that made the request
timestamp stringrequired
Date and Time when the request was done in ISO format
app stringrequired
Name of the API key
provider stringrequired
AI Service Provider used
route stringrequired
Unique identifier of the AI model used within the Provider
unit stringrequired
Unit used for in cost calculations
prompt_tokens number
Number of Tokens in the prompt
prompt_char number
Number of Characters in the prompt
response_tokens number
Number of Tokens in the response
response_char number
Number of Characters in the response
cost stringrequired
Cost of the query, decimal with up to 12 decimal places
latency_ms numberrequired
Query latency in milliseconds
limit number
Limit parameter used in the request
offset number
Offset parameter used in the request
{
"items": [
{
"id": 0,
"username": "string",
"timestamp": "string",
"app": "string",
"provider": "string",
"route": "string",
"unit": "string",
"prompt_tokens": 0,
"prompt_char": 0,
"response_tokens": 0,
"response_char": 0,
"cost": "string",
"latency_ms": 0
}
],
"limit": 0,
"offset": 0
}
Loading...