Skip to main content

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

Queries Listing

Schema
    requires
    items object[]
  • Array [
  • 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

Loading...