Skip to main content
POST
List spans

Authorizations

Authorization
string
header
required

API token from cargo-ai login. Send as Authorization: Bearer <token>.

Headers

Idempotency-Key
string

Client-generated key that makes this write safe to retry. Reusing the same key with the same request returns the original response instead of creating a second record. Reusing it with a different request returns 422. A concurrent retry while the first request is still running returns 409. Keys expire after 24 hours. Not accepted on multipart file uploads. Optional: a request without one is processed as it always was.

Maximum string length: 255
Example:

"8e03978e-40d5-43e8-bc93-6894a57f9324"

Body

application/json

Request body schema.

executionStartedAfter
string
required

Include spans whose execution started after this timestamp (ISO string). Required.

workflowUuid
string<uuid>

When set, restrict spans to this workflow. Omit to search across workflows in the workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
userUuid
string<uuid>

User identifier to filter by.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
batchUuid
string<uuid>

Batch identifier to filter by.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
traceUuid
string<uuid>

Trace identifier to filter by. Returns every span across the trace's run lineage. Raises the maximum limit to 1000 so a whole trace can be fetched in one request.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
runUuid
string<uuid>

Run identifier to filter by.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
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.

Case-insensitive partial match on record title, record ID, execution title, or error message.

Minimum string length: 1
parentRunUuid
string<uuid>

Parent run identifier to filter by.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
parentNodeUuid
string<uuid>

Filter by parent node UUID on the run.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
parentAgentUuid
string<uuid>

When set, restrict spans to rows whose parent agent matches this UUID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeUuid
string<uuid>

Node identifier to filter by.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeKind
enum<string>

Filter by node kind (native, connector, tool, agent).

Available options:
native,
connector,
tool,
agent,
worker
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.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeActionSlug
string

Filter by node action slug (exact match).

nodeToolUuid
string<uuid>

Filter by tool node UUID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeAgentUuid
string<uuid>

Filter by agent node UUID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeWorkerUuid
string<uuid>

Filter by hosted worker UUID on the span.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
nodeReleaseUuid
string<uuid>

Filter by release UUID referenced on the node.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
executionTitle
string

Filter by execution title (SQL ilike).

executionTitleOrErrorMessage
string

Match execution title or execution error message (each SQL ilike).

executionStatuses
enum<string>[]

Execution statuses to include.

Available options:
pending,
success,
error
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

List spans

spans
Spans · object[]
required

Spans matching the filter.

count
number
required

Total count of matching spans.