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

# Fill Form

> Enqueue a PDF fill job (async-only).

Requires:
- file_id: UUID of parsed file (from /parse, must be succeeded)
- prompt: Natural language instructions

Returns 202 with job_id and fill_id. Client polls GET /fill/{job_id}.



## OpenAPI

````yaml openapi.json post /fill
openapi: 3.1.0
info:
  title: Forms API
  version: 0.1.0
servers: []
security: []
paths:
  /fill:
    post:
      summary: Fill Form
      description: |-
        Enqueue a PDF fill job (async-only).

        Requires:
        - file_id: UUID of parsed file (from /parse, must be succeeded)
        - prompt: Natural language instructions

        Returns 202 with job_id and fill_id. Client polls GET /fill/{job_id}.
      operationId: fill_form_fill_post
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_fill_form_fill_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_fill_form_fill_post:
      properties:
        file_id:
          type: string
          title: File Id
        prompt:
          type: string
          title: Prompt
      type: object
      required:
        - file_id
        - prompt
      title: Body_fill_form_fill_post
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````