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

# Make Compile Thread

> Compile a thread into its face. Returns 202 at once, with `status: "queued"`.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/compile/threads/{thread_id}/make
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/compile/threads/{thread_id}/make:
    post:
      tags:
        - Compile
        - Compile - Threads
      summary: Make Compile Thread
      description: >-
        Compile a thread into its face. Returns 202 at once, with `status:
        "queued"`.
      operationId: make_compile_thread_v1_compile_threads__thread_id__make_post
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            title: Thread Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/CompileMakeRequest'
                - type: 'null'
              title: Body
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompileThreadMakeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CompileMakeRequest:
      properties:
        rush:
          type: boolean
          title: Rush
          description: >-
            Start now, at the rush rate, rather than at the scheduled start.
            Also accepted on a compile already queued for its scheduled start,
            which then starts now; once a compile has started it is too late,
            and the answer is 409 `compile_already_started`. Has an effect only
            where compiles are scheduled; otherwise every compile already starts
            at once, at the standard rate, and the response says `rush: false`.
          default: false
      type: object
      title: CompileMakeRequest
      description: Optional body for `POST.../make`.
    CompileThreadMakeResponse:
      properties:
        thread_id:
          type: string
          title: Thread Id
        status:
          type: string
          title: Status
          default: queued
        progress:
          type: number
          title: Progress
          default: 0
        starts_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Starts At
          description: >-
            The compile's scheduled start, ISO 8601 UTC. Null when it starts at
            once.
        rush:
          type: boolean
          title: Rush
          description: >-
            True when this compile was queued as a rush: it starts now, at the
            rush rate.
          default: false
      type: object
      required:
        - thread_id
      title: CompileThreadMakeResponse
      description: >-
        The 202 from POST /compile/threads/{id}/make: the compile is queued.
        Poll GET

        /compile/threads/{id} for `status` and `progress`.
    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.