stats
Get aggregate stats
Returns run totals for the environment.
Includes total runs, completed, failed and cancelled counts, and the number of tool calls for runs queued in the date range. Defaults to the last 30 days.
Required permission: stats.view.
get/v1/projects/{project_id}/stats/aggregate
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
project_id, string uuid required
ID of the project the API key belongs to.
Query parameters
environment_id, string uuid required
Environment to count runs in.
start_date, string date-time nullable
Only runs queued at or after this time. Defaults to 30 days ago; no offset means UTC.
end_date, string date-time nullable
Only runs queued at or before this time. Defaults to now; no offset means UTC.
Response
Successful Response
Public Aggregate Stats Response required
total_runs, integer required
Runs queued in the date range.
total_success, integer required
Runs that completed.
total_failed, integer required
Runs that failed.
total_cancelled, integer required
Runs that were cancelled.
total_tool_calls, integer required
Tool calls made by those runs.
Changes
No recorded changes to this operation across all 17 revisions of this API.