{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/langflow/json-schema/langflow-trace-list-response-schema.json",
  "title": "TraceListResponse",
  "description": "Paginated list response for traces.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/langflow-traces-api-openapi.yml#/components/schemas/TraceListResponse",
  "properties": {
    "pages": {
      "title": "Pages",
      "type": "integer"
    },
    "total": {
      "title": "Total",
      "type": "integer"
    },
    "traces": {
      "items": {
        "$ref": "#/$defs/TraceSummaryRead"
      },
      "title": "Traces",
      "type": "array"
    }
  },
  "required": [
    "traces",
    "total",
    "pages"
  ],
  "type": "object",
  "$defs": {
    "SpanStatus": {
      "description": "OpenTelemetry status codes.\n\n- UNSET: Default status, span has not ended yet\n- OK: Span completed successfully\n- ERROR: Span completed with an error",
      "enum": [
        "unset",
        "ok",
        "error"
      ],
      "title": "SpanStatus",
      "type": "string"
    },
    "TraceSummaryRead": {
      "description": "Lightweight trace model for list endpoint.\n\nSerializes to camelCase JSON to match the frontend API contract.",
      "properties": {
        "flowId": {
          "format": "uuid",
          "title": "Flowid",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "input": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Input"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "output": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Output"
        },
        "sessionId": {
          "title": "Sessionid",
          "type": "string"
        },
        "startTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Starttime"
        },
        "status": {
          "$ref": "#/$defs/SpanStatus"
        },
        "totalLatencyMs": {
          "title": "Totallatencyms",
          "type": "integer"
        },
        "totalTokens": {
          "title": "Totaltokens",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "status",
        "startTime",
        "totalLatencyMs",
        "totalTokens",
        "flowId",
        "sessionId"
      ],
      "title": "TraceSummaryRead",
      "type": "object"
    }
  }
}