{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-execution-list-response-schema.json",
  "title": "ExecutionListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-decision-execution-replay-api-openapi.yml#/components/schemas/ExecutionListResponse",
  "type": "object",
  "properties": {
    "executions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExecutionSummary"
      }
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    }
  },
  "$defs": {
    "ExecutionSummary": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string"
        },
        "workflow_name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "running",
            "completed",
            "failed"
          ]
        },
        "total_steps": {
          "type": "integer"
        },
        "completed_steps": {
          "type": "integer"
        },
        "started_at": {
          "type": "string",
          "format": "date-time"
        },
        "completed_at": {
          "type": "string",
          "format": "date-time"
        },
        "duration_ms": {
          "type": "integer"
        },
        "total_tokens": {
          "type": "integer"
        },
        "total_cost_usd": {
          "type": "number",
          "format": "double"
        },
        "org_id": {
          "type": "string"
        },
        "tenant_id": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        },
        "error_message": {
          "type": "string"
        },
        "input_summary": {
          "type": "string",
          "description": "Truncated, redacted summary of the workflow input — safe\nto display in audit listings without leaking PII or\nsecrets. Full input is in the per-step ExecutionSnapshot\nrecords.\n"
        },
        "output_summary": {
          "type": "string",
          "description": "Truncated, redacted summary of the workflow's final\noutput. Same redaction posture as `input_summary`.\n"
        }
      }
    }
  }
}