> ## 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.

# Start Compile Thread

> Start a new compile thread for conversational training.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/compile/threads
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/compile/threads:
    post:
      tags:
        - Compile
        - Compile - Threads
      summary: Start Compile Thread
      description: Start a new compile thread for conversational training.
      operationId: start_compile_thread_v1_compile_threads_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompileThreadStartRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompileThreadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CompileThreadStartRequest:
      properties:
        label:
          type: string
          title: Label
        alias:
          type: string
          title: Alias
        interviewer_billing_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Interviewer Billing Source
      type: object
      required:
        - label
        - alias
      title: CompileThreadStartRequest
    CompileThreadResponse:
      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
        message:
          $ref: '#/components/schemas/CompileMessageObject'
        tokens_used:
          type: integer
          title: Tokens Used
        tokens_limit:
          type: integer
          title: Tokens Limit
        tokens_charged:
          type: integer
          title: Tokens Charged
          default: 0
        interviewer_billing_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Interviewer Billing Source
        read_only:
          type: boolean
          title: Read Only
          default: false
        compilable:
          type: boolean
          title: Compilable
          default: true
        compile_blocked_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Compile Blocked Reason
        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
        - message
        - tokens_used
        - tokens_limit
        - status
        - progress
        - starts_at
        - rush
      title: CompileThreadResponse
      description: >-
        Shared shape for /start and /messages responses. `status` and `progress`
        are the

        compile's, as on GET.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompileMessageObject:
      properties:
        role:
          type: string
          title: Role
        content:
          type: string
          title: Content
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Speaker label. Null when the message has no speaker attribution.
        timestamp:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Timestamp
          description: >-
            When this message was last written: created, or edited in place.
            Compare it against the thread's `synced_at` to tell whether this
            particular message has been compiled. Null means the instant is not
            recorded, which is not the same as edited.
      type: object
      required:
        - role
        - content
      title: CompileMessageObject
      description: One message being read back from a thread.
    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.