cURL
curl --request GET \ --url https://api.example.com/admin/analytics/summary
{ "totalExecutions": 123, "successfulExecutions": 123, "failedExecutions": 123, "successRate": 123, "averageExecutionTime": 123, "mostUsedTools": [ {} ], "periodStart": {}, "periodEnd": {}, "content": [ { "id": 123, "toolName": "<string>", "toolCode": "<string>", "executedAt": {}, "executionTime": 123, "success": true, "statusCode": 123, "requestPayload": "<string>", "responseBody": "<string>", "errorMessage": "<string>" } ], "pageable": {}, "totalElements": 123, "totalPages": 123, "size": 123, "number": 123 }
View tool execution metrics and logs
curl -X GET "http://localhost:8080/admin/analytics/summary?days=30" \ -H "Authorization: Bearer YOUR_TOKEN"
AnalyticsSummaryResponse
{ "totalExecutions": 1247, "successfulExecutions": 1198, "failedExecutions": 49, "successRate": 96.07, "averageExecutionTime": 342.5, "mostUsedTools": [ { "toolName": "GitHub Create Issue", "executionCount": 342 }, { "toolName": "Resend Email", "executionCount": 289 } ], "periodStart": "2026-02-01T00:00:00Z", "periodEnd": "2026-03-03T23:59:59Z" }
curl -X GET "http://localhost:8080/admin/analytics/logs?page=0&size=20" \ -H "Authorization: Bearer YOUR_TOKEN"
Page<ToolExecutionLogResponse>
Show ToolExecutionLogResponse properties
{ "content": [ { "id": 12847, "toolName": "GitHub Create Issue", "toolCode": "github-create-issue", "executedAt": "2026-03-03T15:42:18Z", "executionTime": 423, "success": true, "statusCode": 201, "requestPayload": "{\"title\":\"Bug: API timeout\",\"body\":\"...\"}", "responseBody": "{\"id\":789,\"number\":42,\"state\":\"open\"}", "errorMessage": null } ], "pageable": { "pageNumber": 0, "pageSize": 20, "sort": { "sorted": true, "unsorted": false } }, "totalElements": 1247, "totalPages": 63, "size": 20, "number": 0 }