runs

Returns one run with its input, output, error, execution trace, token usage and cost, connector, trigger details and run context. Token usage and cost cover the agent's own model calls; judge evaluations of the run are listed by GET /runs/{run_id}/judge-runs.

Required permission: runs.view.

get/v1/projects/{project_id}/runs/{run_id}

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.

run_id, string uuid required

Run ID from GET /runs.

Query parameters

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

AgentRunWithTraces required

One run with its content, execution trace, token usage and cost.

id, string uuid required
agent_name, string required

Base agent name; runs handled by an A/B variant are stored under the base name.

test_name, string nullable

A/B test variant that handled the run, or the test case name for deploy_gate runs; null for runs of the base agent.

ab_test_ids, string[]

IDs of the A/B tests this run was counted in.

status, 'scheduled' | 'queued' | 'started' | 'awaiting_approval' | 'completed' | 'failed' | 'cancelled' | 'blocked' required

scheduled and queued runs have not started, started runs are executing, awaiting_approval runs wait for a tool approval, and completed, failed and cancelled are final.

input, string nullable

Run input as text, with the environment's redacted keys masked; null after the run is deleted.

output, string nullable

Final agent output, with the environment's redacted keys masked; null until the run finishes and after it is deleted.

error, string nullable

Failure or cancellation message, if any; null after the run is deleted.

queued_at, string date-time required

When the run was created.

started_at, string date-time nullable

When execution began; null until the run starts.

ended_at, string date-time nullable

When the run reached a final status; null while it is active.

duration_ms, number nullable

Execution time in milliseconds, excluding time spent waiting for approvals or child runs; null until the run ends.

data_deleted_at, string date-time nullable

When the run's content and trace were deleted; null if they were not. Status, usage and cost remain.

can_delete_data, boolean

True when the run and its background processing (usage accounting, judge evaluations, outbound deliveries) have finished, so it can be deleted.

scheduled_at, string date-time nullable

When a scheduled run is due to start; null for runs queued immediately.

queued_reason, string nullable

Why a queued run has not started yet, for example concurrency_wait, credit_exhausted or budget_limit_exceeded:<spend alert ID>. Null once the run starts.

token_usage, PublicRunTokenUsageResponse required

Token counts for the agent's own model calls, excluding judge evaluations, with one model_usages entry per call.

traces, AgentTraceResponse[]

Execution trace: spans and log entries ordered by start_time, then span_order. Empty after the run is deleted.

connector, ConnectorInfo nullable

Connector whose event started a run.

triggered_by, string nullable

ID of the run whose agent started this run; older runs may hold a free-text value instead.

triggered_by_run, TriggeredByRunInfo nullable

The run whose agent started this run.

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

What started the run: a user or API call, a connector event, another agent, or a deployment test.

deployment_id, string uuid nullable

ID of the deployment that ran this run; null until the run is picked up.

token_cost, PublicTokenCostResponse nullable

Token cost in each model's pricing currency, or in one currency when convert_costs_to is set.

cost_items, PublicRunCostItemResponse[]

Costs from outside connic recorded on the run, oldest first. connic never bills them.

run_context, object nullable

Context values stored by the run's middleware and tools, with the environment's redacted keys masked; null after the run is deleted.

session, RunSessionInfo nullable

Persistent session a run belongs to.

guardrail_interventions, PublicGuardrailInterventionResponse[]

Guardrail checks that warned about, blocked or redacted content during the run.

Changes

    • info

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

    • info

      added the optional property cost_items to the response with the status

    • info

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