Reports & Analytics
Get query analytics.
Changed onReturns 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
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Example response
{
"status": "success",
"data": {
"total": 10,
"query_status": [
{
"count": 2
}
]
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the non-success response with the status
- warning
- info
endpoint added
- info