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

# List Traces

> List traces for the current project with filtering, sorting, and stats.

Auth: `Bearer` + `X-Project-ID` | `X-API-Key` + `X-Project-Name`



## OpenAPI

````yaml /openapi.json get /traces
openapi: 3.1.0
info:
  title: PandaProbe API
  description: >-
    Open-source agent engineering platform — trace LLM calls, evaluate agent
    performance, and monitor AI pipelines.
  version: 0.1.0
  contact:
    name: PandaProbe
    url: https://www.pandaprobe.com
    email: support@pandaprobe.com
servers:
  - url: https://api.pandaprobe.com
    description: Production
security: []
tags:
  - name: health
    description: Service health and readiness probes.
  - name: user
    description: Authenticated user profile.
  - name: traces
    description: Trace ingestion, querying, updating, and analytics.
  - name: sessions
    description: Session-based trace aggregation and analytics.
  - name: evaluations
    description: Evaluation runs, scores, analytics, and monitoring.
  - name: organizations
    description: Organization management and membership.
  - name: projects
    description: Project CRUD within organizations.
  - name: api-keys
    description: API key lifecycle management.
paths:
  /traces:
    get:
      tags:
        - traces
      summary: List Traces
      description: |-
        List traces for the current project with filtering, sorting, and stats.

        Auth: `Bearer` + `X-Project-ID` | `X-API-Key` + `X-Project-Name`
      operationId: list_traces_traces_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: session_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Session Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/TraceStatus'
              - type: 'null'
            title: Status
        - name: user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: User Id
        - name: tags
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Tags
        - name: name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name
        - name: started_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Started After
        - name: started_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Started Before
        - name: sort_by
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/TraceSortBy'
            default: started_at
        - name: sort_order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/SortOrder'
            default: desc
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_TraceListItem_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - ApiKey: []
        - ProjectID: []
        - ProjectName: []
components:
  schemas:
    TraceStatus:
      type: string
      enum:
        - PENDING
        - RUNNING
        - COMPLETED
        - ERROR
      title: TraceStatus
      description: High-level status of a trace.
    TraceSortBy:
      type: string
      enum:
        - started_at
        - ended_at
        - name
        - latency
        - status
      title: TraceSortBy
      description: Columns available for sorting trace list results.
    SortOrder:
      type: string
      enum:
        - asc
        - desc
      title: SortOrder
      description: Generic ascending / descending sort direction.
    PaginatedResponse_TraceListItem_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TraceListItem'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: PaginatedResponse[TraceListItem]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TraceListItem:
      properties:
        trace_id:
          type: string
          format: uuid
          title: Trace Id
        name:
          type: string
          title: Name
        status:
          $ref: '#/components/schemas/TraceStatus'
        started_at:
          type: string
          title: Started At
        ended_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Ended At
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        tags:
          items:
            type: string
          type: array
          title: Tags
        environment:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment
        release:
          anyOf:
            - type: string
            - type: 'null'
          title: Release
        latency_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Latency Ms
        span_count:
          type: integer
          title: Span Count
          default: 0
        total_tokens:
          type: integer
          title: Total Tokens
          default: 0
        total_cost:
          type: number
          title: Total Cost
          default: 0
      type: object
      required:
        - trace_id
        - name
        - status
        - started_at
        - ended_at
        - session_id
        - user_id
        - tags
      title: TraceListItem
      description: Lightweight trace summary used in list responses.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
    ProjectID:
      type: apiKey
      in: header
      name: X-Project-ID
    ProjectName:
      type: apiKey
      in: header
      name: X-Project-Name

````