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

# Get traces with optional filters



## OpenAPI

````yaml api-reference/endpoints/traces/api-reference/openapi.json get /api/v1/traces
openapi: 3.1.0
info:
  title: Polos Orchestrator API
  description: API for the Polos durable execution platform for AI agents
  contact:
    name: Polos Team
    url: https://github.com/polos-dev/polos
  license:
    name: ''
  version: 1.0.0
servers:
  - url: /
    description: Current server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Project management endpoints
  - name: Agents
    description: Agent definition management
  - name: Tools
    description: Tool definition management
  - name: Workflows
    description: Workflow management
  - name: Executions
    description: Workflow execution management
  - name: Traces
    description: Observability traces
  - name: Events
    description: Event publishing and streaming
  - name: Event Triggers
    description: Event-based workflow triggers
  - name: Schedules
    description: Scheduled workflow execution
  - name: Workers
    description: Worker registration and management
  - name: Deployments
    description: Deployment management
paths:
  /api/v1/traces:
    get:
      tags:
        - Traces
      summary: Get traces with optional filters
      operationId: get_traces
      parameters:
        - name: X-Project-ID
          in: header
          description: Project ID
          required: true
          schema:
            type: string
        - name: start_time
          in: query
          description: Start time filter (RFC3339)
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: end_time
          in: query
          description: End time filter (RFC3339)
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: root_span_type
          in: query
          description: Filter by root span type
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: root_span_name
          in: query
          description: Filter by root span name
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: has_error
          in: query
          description: Filter by error presence
          required: false
          schema:
            type:
              - boolean
              - 'null'
        - name: limit
          in: query
          description: 'Maximum number of results (default: 50)'
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
        - name: offset
          in: query
          description: Offset for pagination
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
      responses:
        '200':
          description: List of traces
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
        - cookie_auth: []
components:
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
    cookie_auth:
      type: apiKey
      in: cookie
      name: polos_auth

````