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

# Parse Form

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

Authentication: X-API-Key header.

Flow:
1. Read and hash file
2. Check cache
3. Upload input.pdf to S3
4. Insert DB record (get file_id)
5. Create parse job (queued)
6. Return 202 + job_id (client polls GET /parse/{job_id})



## OpenAPI

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

        Authentication: X-API-Key header.

        Flow:
        1. Read and hash file
        2. Check cache
        3. Upload input.pdf to S3
        4. Insert DB record (get file_id)
        5. Create parse job (queued)
        6. Return 202 + job_id (client polls GET /parse/{job_id})
      operationId: parse_form_parse_post
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_parse_form_parse_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_parse_form_parse_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        force:
          type: boolean
          title: Force
          default: false
      type: object
      required:
        - file
      title: Body_parse_form_parse_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

````