stats

Paginated run list for one environment. Narrow results with status_filter, agent_name, trigger_source, deployment_id, a preset time_range, or custom start_date and end_date; time filters apply to when runs were queued. Pass session_id, session_app_name, and session_user_id together to match one exact persistent session. search matches run ID, agent name, input, output and error text; it also accepts filter expressions like context.customer == 'acme' or tokens.input > 100000. Ordered by sort_by (queued, duration, tokens) in sort_dir direction; defaults to queue time, newest first. projection=summary leaves out connector_id, ab_test_ids, input, output, error and triggered_by; callers without the runs.view permission always get the summary projection and cannot use search. include_total=false skips counting and returns total: null.

Required permission: stats.view.

get/v1/projects/{project_id}/runs

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP 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 list runs from

deployment_id, string uuid nullable

Only runs executed by this deployment.

time_range, '1h' | '6h' | '24h' | '7d' | '30d' | 'today' | 'this_month' | 'last_month' | 'this_year' nullable

Preset window ending now, or a calendar period in UTC. Ignored when both start_date and end_date are set.

start_date, string date-time nullable

Custom window start; applies only together with end_date and overrides time_range.

end_date, string date-time nullable

Custom window end; applies only together with start_date.

status_filter, RunStatus[] nullable

Only runs in these statuses.

guardrail_outcome, string[] nullable

Only runs with at least one guardrail intervention of these outcomes.

agent_name, string nullable

Only runs of this agent.

trigger_source, 'manual' | 'connector' | 'agent' | 'deploy_gate' nullable

How a run was started: manual by a user, connector by an inbound connector event, agent by another agent, or deploy_gate as a deployment test run.

How the run was triggered

test_name, string[] nullable

Filter by A/B test variant names; use base for runs without a variant

exclude_test_runs, boolean

Exclude runs with a test name

search, string nullable

Text matched against run ID, agent name, input, output and error, or a filter expression.

session_id, string nullable

Persistent session ID; requires session_app_name and session_user_id.

session_app_name, string nullable

Agent application name of the session; requires session_id.

session_user_id, string nullable

Agent user identity of the session; requires session_id.

sort_by, 'queued' | 'duration' | 'tokens'

Column to sort by

sort_dir, 'asc' | 'desc'

Sort direction

limit, integer

Page size, 1 to 250.

offset, integer

Number of runs to skip.

projection, 'full' | 'summary'

full returns every run field; summary leaves out the content fields.

include_total, boolean

Include the filtered total count

convert_costs_to, 'EUR' | 'USD' nullable

Convert token costs to EUR or USD at the daily ECB reference rate of each model call

Response

Successful Response

PublicRunListResponse required
runs, PublicRunListItemResponse[] required

Runs on this page.

total, integer nullable required

Runs matching the filters across all pages. Null when include_total=false.

limit, integer required

Page size used.

offset, integer required

Number of runs skipped.

Changes

    • info

      added the required property runs/items/token_cost/anyOf[subschema #1: PublicTokenCostResponse]/coverage/missing_price_models to the response with the status

    • info

      added the optional property runs/items/token_cost/anyOf[subschema #1: PublicTokenCostResponse]/breakdown/additionalProperties/external_cost to the response with the status