Runs
get/v1/workflows/{id}/runs/{run_id}/events

List events for a run

Returns the full ordered event log for a specific run. Every action — step dispatched, step completed, human task created, run finished — produces an immutable event. Use this for debugging, auditing, and replaying what happened.

Events are ordered chronologically. The data field shape varies by type — see the WebSocket stream description for common event types.

Server

https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/events
Production
AuthenticationRequiredBearerAuth

API key obtained from the AgentRuntime dashboard. Pass as Authorization: Bearer <key> on every request.

Stored only in this page session. It is not saved to local storage.

Test Request

Runs from your browser. Non-GET requests require explicit confirmation and tokens are sent only when you click Send.

Enter a bearer token to enable testing.

Client Libraries
Shell
curl -sS -X GET \
  'https://api.agentruntime.io/v1/workflows/{id}/runs/{run_id}/events' \
  -H 'Authorization: Bearer <token>'
  • 200Ordered event log.

    application/json

    events

    array of

    Schema
    id

    string

    Example: "evt_01hw3k9x4v8m"

    run_id

    string

    Example: "run_01hw3k9x4v8m"

    type

    string

    Event type identifier.

    Example: "step_completed"

    data
    Schema
    timestamp

    string

    Example: "2026-04-10T11:00:01.312Z"

    {
      "events": [
        {
          "id": "evt_001",
          "run_id": "run_01hw3k9x4v8m",
          "type": "step_started",
          "data": {
            "step_id": "classify"
          },
          "timestamp": "2026-04-10T11:00:00.050Z"
        },
        {
          "id": "evt_002",
          "run_id": "run_01hw3k9x4v8m",
          "type": "step_completed",
          "data": {
            "step_id": "classify",
            "result": {
              "category": "billing",
              "confidence": 0.94
            },
            "duration_ms": 312
          },
          "timestamp": "2026-04-10T11:00:00.362Z"
        },
        {
          "id": "evt_003",
          "run_id": "run_01hw3k9x4v8m",
          "type": "step_started",
          "data": {
            "step_id": "draft-reply"
          },
          "timestamp": "2026-04-10T11:00:00.380Z"
        },
        {
          "id": "evt_004",
          "run_id": "run_01hw3k9x4v8m",
          "type": "step_completed",
          "data": {
            "step_id": "draft-reply",
            "result": "Hi! I can help you cancel. Go to Account Settings → Billing → Cancel Plan.",
            "duration_ms": 1840
          },
          "timestamp": "2026-04-10T11:00:02.220Z"
        },
        {
          "id": "evt_005",
          "run_id": "run_01hw3k9x4v8m",
          "type": "human_task_created",
          "data": {
            "task_id": "task_01hw3k9x4v8m",
            "step_id": "human-review"
          },
          "timestamp": "2026-04-10T11:00:02.240Z"
        }
      ]
    }
  • 401Missing or invalid Bearer token.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "unauthorized",
      "code": "UNAUTHORIZED"
    }
  • 404The requested resource does not exist.

    application/json

    errorrequired

    string

    Human-readable description of what went wrong.

    Example: "workflow not found"

    code

    string

    Machine-readable error code for programmatic handling.

    Example: "NOT_FOUND"

    {
      "error": "workflow not found",
      "code": "NOT_FOUND"
    }