Skip to content
AdiosDocumentation
Browse documentation

Agent runs API

Inspect durable agent runs. Run state is managed by the agent service.

Use API authentication for protected requests. Examples use your own resource IDs and a temporary token; saved response examples are synthetic.

MethodPathOperation
GET/v1/agent_runList agent runs
GET/v1/agent_run/{id}Get agent run

List agent runs

GET /v1/agent_run

Returns a paginated list of AgentRun

Authentication: bearer token and the team header shown below.

Parameters

NameLocationRequiredDescription
X-Tenant-IDheaderyesActive team ID. Must match the tenant bound to a diagnostic token.
pagequerynoPage number
per_pagequerynoItems per page

Request example

Set ADIOS_API_URL=https://api.adios.dev. For protected requests, set ADIOS_ACCESS_TOKEN and ADIOS_TEAM_ID as in the quickstart. Set any additional ADIOS_* variables from your own resource results.

curl --fail-with-body --request GET "$ADIOS_API_URL/v1/agent_run" \
  -H "Authorization: Bearer $ADIOS_ACCESS_TOKEN" \
  -H "X-Tenant-ID: $ADIOS_TEAM_ID"

Response: HTTP 200

List of AgentRun

Response fields

FieldTypeDescription
dataarray
data[].action_digeststring
data[].agent_binding_idstring
data[].agent_binding_revision_idstring
data[].agent_definition_idstring
data[].agent_draft_idstring
data[].agent_draft_revisioninteger
data[].agent_kit_content_digeststring
data[].agent_kit_entrypointstring
data[].agent_kit_functionstring
data[].agent_kit_version_idstring
data[].agent_run_idstring
data[].agent_session_idstring
data[].agent_suite_idstring
data[].agent_suite_version_idstring
data[].agent_version_digeststring
data[].agent_version_idstring
data[].agent_work_cycle_idstring
data[].approval_idstring
data[].base_shastring
data[].branchstring
data[].budget_cost_microsinteger
data[].budget_tokensinteger
data[].cached_tokensinteger
data[].company_project_idstring
data[].completed_atinteger(Unix timestamp)
data[].created_atinteger(Unix timestamp)
data[].deleted_atinteger(Unix timestamp)
data[].effective_policyobject
data[].effective_policy_digeststring
data[].environment_checkpoint_idstring
data[].errorobject
data[].estimated_cost_microsinteger
data[].execution_idstring
data[].execution_task_idstring
data[].head_shastring
data[].idempotency_keystring
data[].input_tokensinteger
data[].last_activity_atinteger(Unix timestamp)
data[].lead_agent_run_idstring
data[].metadataobject
data[].modestringAllowed: build, debug, ops, review, chat, background.
data[].modelstring
data[].output_tokensinteger
data[].owner_idstring
data[].parent_agent_run_idstring
data[].presetstringAllowed: security_review, code_review, verify_changes, engineering_review, finding_fix.
data[].providerstring
data[].read_onlyboolean
data[].retention_classstringAllowed: ephemeral, standard, extended, compliance.
data[].role_keystring
data[].sourcestringAllowed: app, slack, cli, workflow, event, schedule, system.
data[].source_snapshot_digeststring
data[].specialist_rolestringAllowed: lead, security, code_quality, test_verification.
data[].started_atinteger(Unix timestamp)
data[].statusstringAllowed: pending, running, blocked, cancelling, complete, failed, cancelled.
data[].step_countinteger
data[].structured_outcomeobject
data[].suite_node_keystring
data[].suite_profilestring
data[].summaryobject
data[].target_kindstringAllowed: standalone, browser, workspace, workload, project, company_project, repository, pull_request, finding, custom.
data[].target_refstring
data[].team_idstring
data[].tool_call_countinteger
data[].tool_scopeobject
data[].trace_idstring
data[].trigger_principal_idstring
data[].trigger_refstring
data[].trigger_typestringAllowed: manual, draft_test, pre_merge, schedule, event, workflow, compatibility, approval.
data[].updated_atinteger(Unix timestamp)
paginationobject
pagination.pageintegerCurrent page number
pagination.per_pageintegerNumber of items per page
pagination.totalintegerTotal number of items

The schema-derived collection illustration is omitted here because it does not satisfy the published response schema. Use the field contract above.

Get agent run

GET /v1/agent_run/{id}

Returns a single AgentRun

Set agent_run_id using IDs from your own API responses.

Authentication: bearer token and the team header shown below.

Parameters

NameLocationRequiredDescription
idpathyesResource identifier from your team's API results.
X-Tenant-IDheaderyesActive team ID. Must match the tenant bound to a diagnostic token.

Request example

Set ADIOS_API_URL=https://api.adios.dev. For protected requests, set ADIOS_ACCESS_TOKEN and ADIOS_TEAM_ID as in the quickstart. Set any additional ADIOS_* variables from your own resource results.

curl --fail-with-body --request GET "$ADIOS_API_URL/v1/agent_run/${ADIOS_AGENT_RUN_ID}" \
  -H "Authorization: Bearer $ADIOS_ACCESS_TOKEN" \
  -H "X-Tenant-ID: $ADIOS_TEAM_ID"

Response: HTTP 200

AgentRun

Response fields

FieldTypeDescription
action_digeststring
agent_binding_idstring
agent_binding_revision_idstring
agent_definition_idstring
agent_draft_idstring
agent_draft_revisioninteger
agent_kit_content_digeststring
agent_kit_entrypointstring
agent_kit_functionstring
agent_kit_version_idstring
agent_run_idstring
agent_session_idstring
agent_suite_idstring
agent_suite_version_idstring
agent_version_digeststring
agent_version_idstring
agent_work_cycle_idstring
approval_idstring
base_shastring
branchstring
budget_cost_microsinteger
budget_tokensinteger
cached_tokensinteger
company_project_idstring
completed_atinteger(Unix timestamp)
created_atinteger(Unix timestamp)
deleted_atinteger(Unix timestamp)
effective_policyobject
effective_policy_digeststring
environment_checkpoint_idstring
errorobject
estimated_cost_microsinteger
execution_idstring
execution_task_idstring
head_shastring
idempotency_keystring
input_tokensinteger
last_activity_atinteger(Unix timestamp)
lead_agent_run_idstring
metadataobject
modestringAllowed: build, debug, ops, review, chat, background.
modelstring
output_tokensinteger
owner_idstring
parent_agent_run_idstring
presetstringAllowed: security_review, code_review, verify_changes, engineering_review, finding_fix.
providerstring
read_onlyboolean
retention_classstringAllowed: ephemeral, standard, extended, compliance.
role_keystring
sourcestringAllowed: app, slack, cli, workflow, event, schedule, system.
source_snapshot_digeststring
specialist_rolestringAllowed: lead, security, code_quality, test_verification.
started_atinteger(Unix timestamp)
statusstringAllowed: pending, running, blocked, cancelling, complete, failed, cancelled.
step_countinteger
structured_outcomeobject
suite_node_keystring
suite_profilestring
summaryobject
target_kindstringAllowed: standalone, browser, workspace, workload, project, company_project, repository, pull_request, finding, custom.
target_refstring
team_idstring
tool_call_countinteger
tool_scopeobject
trace_idstring
trigger_principal_idstring
trigger_refstring
trigger_typestringAllowed: manual, draft_test, pre_merge, schedule, event, workflow, compatibility, approval.
updated_atinteger(Unix timestamp)

The schema-derived collection illustration is omitted here because it does not satisfy the published response schema. Use the field contract above.