---
title: "List traces"
method: POST
path: "/orchestration/traces/list"
tags: ["Orchestration - Traces"]
---

# List traces

`POST /orchestration/traces/list`

List orchestration traces. Each trace wraps every span (node execution) across its run lineage; the summary is aggregated at query time directly from orchestration.spans (no separate traces table — spans carries `trace_uuid` with a bloom-filter skipping index).

## Request body

- object — Request body schema.
  - `workflowUuid` string, uuid — When set, restrict traces to this workflow. Omit to search across workflows in the workspace.
  - `statuses` string[] — Filter traces by their derived status (`pending` if any span anywhere in the trace is still pending, `error` if any of the root run's spans has errored, otherwise `success`).
  - `startedAfter` string, required — Include traces whose first execution started after this timestamp (ISO string). Required.
  - `startedBefore` string — Include traces whose first execution started on or before this timestamp (ISO string).
  - `limit` number — Maximum number of traces to return.
  - `offset` number — Number of traces to skip.

## Response `200`

Successful response

- object
  - `traces` object[], required — Traces matching the filter.
    - `uuid` string, required
    - `workspaceUuid` string, required
    - `workflowUuid` string, required
    - `rootRunUuid` string, nullable, required
    - `spansCount` number, required
    - `failedSpansCount` number, required
    - `pendingSpansCount` number, required
    - `succeededSpansCount` number, required
    - `creditsUsedCount` number, required
    - `startedAt` string, required
    - `finishedAt` string, nullable, required
    - `updatedAt` string, required
    - `status` 'pending' | 'error' | 'success', required
  - `count` number, required — Total count of matching traces.

## 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)
