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

# Get Live Traces

> Get spans from the live streaming endpoint.

Retrieves a paginated list of the most recent spans for an application
from the live data stream.

Requires a valid JWT token with the `read:traces` permission.

Returns:
    Paginated list of trace details



## OpenAPI

````yaml GET /traces/live
openapi: 3.1.0
info:
  title: Unomiq Engine API
  description: >-

    API for managing OpenTelemetry data, queries and boards.


    ## Authentication


    All API endpoints require authentication via JWT token in the Authorization
    header:


    ```

    Authorization: Bearer <your_jwt_token>

    ```


    Obtain your JWT token from the authentication service and include it in all
    requests.
        
  version: 1.0.0
servers:
  - url: https://engine-api.unomiq.com
    description: Production
security: []
paths:
  /traces/live:
    get:
      tags:
        - traces
      summary: Get Live Traces
      description: |-
        Get spans from the live streaming endpoint.

        Retrieves a paginated list of the most recent spans for an application
        from the live data stream.

        Requires a valid JWT token with the `read:traces` permission.

        Returns:
            Paginated list of trace details
      operationId: get_live_traces_traces_live_get
      parameters:
        - name: start_time
          in: query
          required: true
          schema:
            type: string
            format: date-time
            description: Start datetime (inclusive)
            examples:
              - '2025-01-15T00:00:00Z'
            title: Start Time
          description: Start datetime (inclusive)
        - name: end_time
          in: query
          required: true
          schema:
            type: string
            format: date-time
            description: End datetime (exclusive)
            examples:
              - '2025-01-16T00:00:00Z'
            title: End Time
          description: End datetime (exclusive)
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number for pagination (1-indexed)
            default: 1
            title: Page
          description: Page number for pagination (1-indexed)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Number of items per page
            default: 20
            title: Limit
          description: Number of items per page
        - name: X-Unomiq-App-Id
          in: header
          required: true
          schema:
            type: string
            title: X-Unomiq-App-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveTraceListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    LiveTraceListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/LiveTrace'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/PaginationInfo'
      type: object
      required:
        - data
        - pagination
      title: LiveTraceListResponse
      description: Paginated response for live traces.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LiveTrace:
      properties:
        trace_id:
          type: string
          title: Trace Id
        span_id:
          type: string
          title: Span Id
        parent_span_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Span Id
        span_name:
          type: string
          title: Span Name
        span_kind:
          type: string
          title: Span Kind
        service_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Name
        span_start_time_unix_nano:
          type: integer
          title: Span Start Time Unix Nano
        span_end_time_unix_nano:
          type: integer
          title: Span End Time Unix Nano
        resource_attributes:
          anyOf:
            - {}
            - type: 'null'
          title: Resource Attributes
        span_attributes:
          anyOf:
            - {}
            - type: 'null'
          title: Span Attributes
      type: object
      required:
        - trace_id
        - span_id
        - span_name
        - span_kind
        - span_start_time_unix_nano
        - span_end_time_unix_nano
      title: LiveTrace
      description: |-
        LiveTrace domain model.
        Present in Tinybird but not included in the model:
            - TraceState
            - ResourceSchemaUrl
            - ScopeSchemaUrl
            - ScopeName
            - ScopeVersion
            - ScopeAttributes
            - StatusCode
            - StatusMessage
    PaginationInfo:
      properties:
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total:
          type: integer
          title: Total
      type: object
      required:
        - page
        - limit
        - total
      title: PaginationInfo
      description: Pagination metadata.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````