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

# List Compile Threads

> List all compile threads across all owned model IAMs.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/compile/threads
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/compile/threads:
    get:
      tags:
        - Compile
        - Compile - Threads
      summary: List Compile Threads
      description: List all compile threads across all owned model IAMs.
      operationId: list_compile_threads_v1_compile_threads_get
      parameters:
        - name: alias
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by face alias
            title: Alias
          description: Filter by face alias
        - name: include_uploads
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Widens an UNFILTERED listing to include threads attached to a
              face's hidden style face. It does not gate uploads as such:
              measured on a live account, the unfiltered listing already returns
              threads whose `source` is `compile_upload` without this flag, and
              an `?alias=`-filtered listing returns that face's uploads without
              it too. Setting it changes only which FACES are traversed, not
              which SOURCES are shown.
            default: false
            title: Include Uploads
          description: >-
            Widens an UNFILTERED listing to include threads attached to a face's
            hidden style face. It does not gate uploads as such: measured on a
            live account, the unfiltered listing already returns threads whose
            `source` is `compile_upload` without this flag, and an
            `?alias=`-filtered listing returns that face's uploads without it
            too. Setting it changes only which FACES are traversed, not which
            SOURCES are shown.
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CompileThreadListItem'
                title: Response List Compile Threads V1 Compile Threads Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CompileThreadListItem:
      properties:
        rush_premium_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Rush Premium Usd
          description: >-
            While this compile is queued for its scheduled start: what a rush
            would cost you now, in USD, paid from credit (the difference from
            the standard rate when your plan covers the compile, the whole rush
            price when it is paid as you go). Null once it has started, when it
            is already a rush, or when there is no scheduled start.
        thread_id:
          type: string
          title: Thread Id
        label:
          type: string
          title: Label
        alias:
          type: string
          title: Alias
        source:
          type: string
          title: Source
        message_count:
          type: integer
          title: Message Count
        messages_archived:
          type: integer
          title: Messages Archived
        synced:
          type: boolean
          title: Synced
        synced_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Synced At
          description: >-
            When this thread was last compiled. Null means never. A message
            whose `timestamp` is later than this is one the compile has not
            read.
        version:
          type: integer
          title: Version
          description: >-
            The thread's current revision. Changes when the messages change,
            including a reorder; a label edit does not move it.
          default: 1
        synced_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Synced Version
          description: >-
            The revision the compile read. Lower than `version` means the
            messages have changed since. Null with a non-null `synced_at` means
            the thread was compiled before this was recorded: unknown, not
            stale.
        token_count:
          type: integer
          title: Token Count
        user_token_count:
          type: integer
          title: User Token Count
        authored_message_count:
          type: integer
          title: Authored Message Count
          default: 0
        tokens_used:
          type: integer
          title: Tokens Used
        tokens_limit:
          type: integer
          title: Tokens Limit
        read_only:
          type: boolean
          title: Read Only
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        stall_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Stall Reason
        finishing:
          type: boolean
          title: Finishing
          default: false
        current_counts:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Current Counts
        compilable:
          type: boolean
          title: Compilable
          default: true
        compile_blocked_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Compile Blocked Reason
        style:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Style
        corpus_medium:
          anyOf:
            - type: string
            - type: 'null'
          title: Corpus Medium
        medium:
          anyOf:
            - type: string
            - type: 'null'
          title: Medium
        status:
          type: string
          title: Status
          description: >-
            One of `not_compiled`, `transcribing`, `queued`, `compiling`,
            `compiled`,

            `paused`, `failed`.
          readOnly: true
        progress:
          type: number
          title: Progress
          description: How far the compile has got, from 0 to 1. 1 only when `compiled`.
          readOnly: true
        starts_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Starts At
          description: >-
            The compile's scheduled start, ISO 8601 UTC, or when it started.
            Null when it

            starts at once.
          readOnly: true
        rush:
          type: boolean
          title: Rush
          description: >-
            True when this compile was queued as a rush: it starts now, at the
            rush rate.
          readOnly: true
      type: object
      required:
        - thread_id
        - label
        - alias
        - source
        - message_count
        - messages_archived
        - synced
        - token_count
        - user_token_count
        - tokens_used
        - tokens_limit
        - created_at
        - updated_at
        - status
        - progress
        - starts_at
        - rush
      title: CompileThreadListItem
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````

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