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

# Read a thread manifest

> List the traces in one conversation, oldest first.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json get /traces/{trace_id}/thread
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /traces/{trace_id}/thread:
    get:
      tags:
        - Traces / Threads
      summary: Read a thread manifest
      description: List the traces in one conversation, oldest first.
      operationId: get_trace_thread
      parameters:
        - name: trace_id
          in: path
          required: true
          description: Any trace in the thread.
          schema:
            type: string
        - name: project_id
          in: query
          required: false
          description: When set, the trace must be in this project.
          schema:
            type: string
        - name: fields
          in: query
          required: true
          description: Comma-separated field names to return on each trace (at least one).
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Traces per page (1-100, default 20).
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: cursor
          in: query
          required: false
          description: Opaque continuation cursor.
          schema:
            type: string
      responses:
        '200':
          description: Thread manifest
          content:
            application/json:
              schema:
                type: object
                properties:
                  thread_id:
                    type:
                      - string
                      - 'null'
                  traces:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        timestamp:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        total_duration_ms:
                          type:
                            - number
                            - 'null'
                        span_count:
                          type: integer
                          minimum: 0
                        has_error:
                          type: boolean
                        tool_calls:
                          type: array
                          items:
                            type: object
                            properties:
                              span_id:
                                type: string
                              name:
                                type: string
                              duration_ms:
                                type:
                                  - number
                                  - 'null'
                              is_error:
                                type: boolean
                              kind:
                                type:
                                  - string
                                  - 'null'
                              status_code:
                                type:
                                  - string
                                  - 'null'
                              attributes:
                                type: object
                                additionalProperties: {}
                              attributes_omitted:
                                type: boolean
                                const: true
                            required:
                              - span_id
                              - name
                              - duration_ms
                              - is_error
                            additionalProperties: false
                        generations:
                          type: array
                          items:
                            type: object
                            properties:
                              span_id:
                                type: string
                              name:
                                type: string
                              duration_ms:
                                type:
                                  - number
                                  - 'null'
                              is_error:
                                type: boolean
                              kind:
                                type:
                                  - string
                                  - 'null'
                              status_code:
                                type:
                                  - string
                                  - 'null'
                              attributes:
                                type: object
                                additionalProperties: {}
                              attributes_omitted:
                                type: boolean
                                const: true
                            required:
                              - span_id
                              - name
                              - duration_ms
                              - is_error
                            additionalProperties: false
                        generations_omitted:
                          type: boolean
                          const: true
                        monitors:
                          type: array
                          items:
                            type: object
                            properties:
                              monitor_id:
                                type: string
                              name:
                                type: string
                              kind:
                                type: string
                                enum:
                                  - signal
                                  - tool
                              agent_name:
                                type: string
                              counted:
                                type: boolean
                              fit:
                                type: boolean
                              correction:
                                type:
                                  - object
                                  - 'null'
                                properties:
                                  id:
                                    type: string
                                  verdict:
                                    type: string
                                    enum:
                                      - include
                                      - exclude
                                  reason:
                                    type:
                                      - string
                                      - 'null'
                                  active:
                                    type: boolean
                                required:
                                  - id
                                  - verdict
                                  - reason
                                  - active
                                additionalProperties: false
                            required:
                              - monitor_id
                              - name
                              - kind
                              - agent_name
                              - counted
                              - fit
                              - correction
                            additionalProperties: false
                      required:
                        - id
                      additionalProperties: false
                  next_request:
                    type:
                      - object
                      - 'null'
                    properties:
                      operation:
                        type: string
                        minLength: 1
                      arguments:
                        type: object
                        properties:
                          trace_id:
                            type: string
                            minLength: 1
                          project_id:
                            type: string
                            minLength: 1
                          fields:
                            type: array
                            items:
                              type: string
                              enum:
                                - generations
                                - timestamp
                                - total_duration_ms
                                - span_count
                                - has_error
                                - tool_calls
                                - monitors
                            minItems: 1
                          limit:
                            type: integer
                            minimum: 1
                            maximum: 100
                          cursor:
                            type: string
                            minLength: 1
                            maxLength: 16384
                        additionalProperties: false
                    required:
                      - operation
                      - arguments
                    additionalProperties: false
                required:
                  - thread_id
                  - traces
                  - next_request
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.