> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List traces

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



## OpenAPI

````yaml https://api.getcargo.io/openapi.json post /orchestration/traces/list
openapi: 3.1.0
info:
  title: Cargo API
  version: 1.0.0
  description: Cargo Platform API v1
servers:
  - url: https://api.getcargo.io/v1
    description: Cargo API
security:
  - bearerAuth: []
paths:
  /orchestration/traces/list:
    post:
      tags:
        - Orchestration - Traces
      summary: List traces
      description: >-
        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).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workflowUuid:
                  title: Workflow UUID
                  description: >-
                    When set, restrict traces to this workflow. Omit to search
                    across workflows in the workspace.
                  type: string
                  format: 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})$
                statuses:
                  title: Statuses
                  description: >-
                    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`).
                  type: array
                  items:
                    type: string
                    enum:
                      - pending
                      - error
                      - success
                startedAfter:
                  type: string
                  title: Started after
                  description: >-
                    Include traces whose first execution started after this
                    timestamp (ISO string). Required.
                startedBefore:
                  title: Started before
                  description: >-
                    Include traces whose first execution started on or before
                    this timestamp (ISO string).
                  type: string
                limit:
                  title: Limit
                  description: Maximum number of traces to return.
                  type: number
                offset:
                  title: Offset
                  description: Number of traces to skip.
                  type: number
              required:
                - startedAfter
              additionalProperties: false
              title: Request body
              description: Request body schema.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  traces:
                    type: array
                    items:
                      type: object
                      properties:
                        uuid:
                          type: string
                        workspaceUuid:
                          type: string
                        workflowUuid:
                          type: string
                        rootRunUuid:
                          anyOf:
                            - type: string
                            - type: 'null'
                        spansCount:
                          type: number
                        failedSpansCount:
                          type: number
                        pendingSpansCount:
                          type: number
                        succeededSpansCount:
                          type: number
                        creditsUsedCount:
                          type: number
                        startedAt:
                          type: string
                        finishedAt:
                          anyOf:
                            - type: string
                            - type: 'null'
                        updatedAt:
                          type: string
                        status:
                          type: string
                          enum:
                            - pending
                            - error
                            - success
                      required:
                        - uuid
                        - workspaceUuid
                        - workflowUuid
                        - rootRunUuid
                        - spansCount
                        - failedSpansCount
                        - pendingSpansCount
                        - succeededSpansCount
                        - creditsUsedCount
                        - startedAt
                        - finishedAt
                        - updatedAt
                        - status
                      additionalProperties: false
                    title: Traces
                    description: Traces matching the filter.
                  count:
                    type: number
                    title: Count
                    description: Total count of matching traces.
                required:
                  - traces
                  - count
                additionalProperties: false
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '500':
          description: Internal server error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````