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

# List runs

> List runs in a thread.



## OpenAPI

````yaml get /v1/threads/{thread_id}/runs
openapi: 3.1.0
info:
  title: SeekrFlow API
  description: SeekrFlow API Documentation
  termsOfService: http://www.seekr.com/support
  contact:
    name: Seekr API Support
    url: http://www.seekr.com/contact
    email: contact@seekr.com
  version: 5.30.1
servers:
  - url: https://flow.seekr.com
    description: SeekrBuild server base URL
security: []
paths:
  /v1/threads/{thread_id}/runs:
    get:
      tags:
        - Runs
      summary: List runs
      description: List runs in a thread.
      operationId: list_runs_endpoint_v1_threads__thread_id__runs_get
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            title: Thread Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 20
            title: Limit
        - name: order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/OrderEnum'
            default: desc
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: x-team-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Team-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Run'
                title: Response List Runs Endpoint V1 Threads  Thread Id  Runs Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    OrderEnum:
      type: string
      enum:
        - asc
        - desc
      title: OrderEnum
      description: Options for order query param in list endpoints.
    Run:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          title: Object
          default: thread.run
        created_at:
          type: string
          format: date-time
          title: Created At
        agent_id:
          type: string
          title: Agent Id
        thread_id:
          type: string
          title: Thread Id
        status:
          $ref: '#/components/schemas/RunStatus'
        is_active:
          type: boolean
          title: Is Active
          default: false
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        cancelled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Cancelled At
        failed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Failed At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        model:
          type: string
          title: Model
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
        tools:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Tools
        meta_data:
          additionalProperties: true
          type: object
          title: Meta Data
        usage:
          anyOf:
            - $ref: '#/components/schemas/RunUsage'
            - type: 'null'
        temperature:
          type: number
          title: Temperature
        top_p:
          type: number
          title: Top P
        max_completion_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Completion Tokens
        truncation_strategy:
          additionalProperties: true
          type: object
          title: Truncation Strategy
        response_format:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
          title: Response Format
          default: auto
        tool_choice:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
          title: Tool Choice
          default: auto
        parallel_tool_calls:
          type: boolean
          title: Parallel Tool Calls
      type: object
      required:
        - id
        - created_at
        - agent_id
        - thread_id
        - status
        - model
        - temperature
        - top_p
        - parallel_tool_calls
      title: Run
      description: |-
        Represents a single execution within a thread.

        A run encompasses the entire lifecycle of processing, from receiving
        the initial prompt to delivering the final response. Runs track
        execution status, timing, model parameters, and resource usage.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RunStatus:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
        - canceled
        - cancelled
      title: RunStatus
      description: Available status for a run.
    RunUsage:
      properties:
        prompt_tokens:
          type: integer
          title: Prompt Tokens
        completion_tokens:
          type: integer
          title: Completion Tokens
        total_tokens:
          type: integer
          title: Total Tokens
      type: object
      required:
        - prompt_tokens
        - completion_tokens
        - total_tokens
      title: RunUsage
      description: |-
        Aggregated usage metrics for a complete run execution.

        Tracks token consumption for both prompts and completions.
    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:
    APIKeyHeader:
      type: apiKey
      description: Authorization Bearer Token
      in: header
      name: Authorization

````