---
title: "List spans"
method: POST
path: "/orchestration/spans/list"
tags: ["Orchestration - Spans"]
---

# List spans

`POST /orchestration/spans/list`

List flattened execution spans for orchestration runs (one row per executed node within a run)

## Request body

- object — Request body schema.
  - `workflowUuid` string, uuid — When set, restrict spans to this workflow. Omit to search across workflows in the workspace.
  - `userUuid` string, uuid — User identifier to filter by.
  - `batchUuid` string, uuid — Batch identifier to filter by.
  - `runUuid` string, uuid — Run identifier to filter by.
  - `recordId` string — Record ID to filter by.
  - `recordTitle` string — Record title to filter by (SQL ilike).
  - `recordTitleOrId` string — Match record id or record title (each SQL ilike); same pattern as run list.
  - `parentRunUuid` string, uuid — Parent run identifier to filter by.
  - `parentNodeUuid` string, uuid — Filter by parent node UUID on the run.
  - `parentAgentUuid` string, uuid — When set, restrict spans to rows whose parent agent matches this UUID.
  - `nodeUuid` string, uuid — Node identifier to filter by.
  - `nodeKind` 'native' | 'connector' | 'tool' | 'agent' — Filter by node kind (native, connector, tool, agent).
  - `nodeSlug` string — Filter by workflow node slug (exact match).
  - `nodeIntegrationSlug` string — Filter by connector integration slug (exact match).
  - `nodeConnectorUuid` string, uuid — Filter by connector UUID.
  - `nodeActionSlug` string — Filter by node action slug (exact match).
  - `nodeToolUuid` string, uuid — Filter by tool node UUID.
  - `nodeAgentUuid` string, uuid — Filter by agent node UUID.
  - `nodeReleaseUuid` string, uuid — Filter by release UUID referenced on the node.
  - `executionTitle` string — Filter by execution title (SQL ilike).
  - `executionStatuses` string[] — Execution statuses to include.
  - `executionStartedAfter` string, required — Include spans whose execution started after this timestamp (ISO string). Required.
  - `executionStartedBefore` string — Include spans whose execution started on or before this timestamp (ISO string).
  - `limit` number — Maximum number of spans to return.
  - `offset` number — Number of spans to skip.

## Response `200`

Successful response

- object
  - `spans` object[], required — Spans matching the filter.
    - `workspaceUuid` string, required
    - `workflowUuid` string, required
    - `userUuid` string, nullable, required
    - `batchUuid` string, required
    - `traceUuid` string, required
    - `recordId` string, required
    - `recordTitle` string, required
    - `runUuid` string, required
    - `runContextS3Filename` string, required
    - `runComputedConfigsS3Filename` string, required
    - `parentRunUuid` string, nullable, required
    - `parentNodeUuid` string, nullable, required
    - `parentBatchUuid` string, nullable, required
    - `parentAgentUuid` string, nullable, required
    - `parentChatUuid` string, nullable, required
    - `parentMessageUuid` string, nullable, required
    - `isGroupParent` boolean, nullable, required
    - `nodeUuid` string, required
    - `nodeKind` 'native' | 'connector' | 'tool' | 'agent', required
    - `nodeSlug` string, required
    - `nodeActionSlug` string, required
    - `nodeConnectorUuid` string, nullable, required
    - `nodeIntegrationSlug` string, nullable, required
    - `nodeToolUuid` string, nullable, required
    - `nodeAgentUuid` string, nullable, required
    - `nodeReleaseUuid` string, nullable, required
    - `nodeBatchUuid` string, nullable, required
    - `nodeRunUuid` string, nullable, required
    - `nodeMessageUuid` string, nullable, required
    - `nodeChildIndex` number, nullable, required
    - `nodeWaitUntilFinished` boolean, required
    - `nodeNextUuid` string, nullable, required
    - `executionIndex` number, required
    - `executionStatus` 'pending' | 'success' | 'error', required
    - `executionErrorMessage` string, nullable, required
    - `executionTitle` string, nullable, required
    - `executionIconUrl` string, nullable, required
    - `executionCreditsUsedCount` number, required
    - `executionStartedAt` string, required
    - `executionUpdatedAt` string, required
    - `executionFinishedAt` string, nullable, required
  - `count` number, required — Total count of matching spans.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
