Reports & Analytics

Get query analytics.

Changed on

Returns aggregate query metrics, including total query volume, success rates, average response times, and failure reasons. Use this to monitor agent performance and identify issues.

get/api/v1/projects/{projectId}/reports/queries

Request

Path parameters

projectIdinteger required
Example:1

The ID of the agent to get queries for

Query parameters

filtersstring[] required

Filters to return queries metrics for.

Response

Get the query metrics for an agent

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "total": 10,
    "query_status": [
      {
        "count": 2
      }
    ]
  }
}

Changes

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • info

      endpoint added