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

# Create File Endpoint



## OpenAPI

````yaml /openapi.json post /v1/files
openapi: 3.1.0
info:
  title: extract
  summary: Parse documents into structured data. Text, tables, and figures in one call.
  version: 0.1.0
servers:
  - url: https://api.extract.page
    description: production
security:
  - APIKeyHeader: []
paths:
  /v1/files:
    post:
      tags:
        - v1
        - async-batch
      summary: Create File Endpoint
      operationId: create_file_v1
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFileRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFileResponse'
        '413':
          description: '`size_bytes` exceeds the upload cap.'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: Async batch uploads are not configured for this deployment.
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreateFileRequest:
      properties:
        filename:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Filename
        content_type:
          anyOf:
            - type: string
              maxLength: 128
            - type: 'null'
          title: Content Type
        size_bytes:
          type: integer
          exclusiveMinimum: 0
          title: Size Bytes
      type: object
      required:
        - size_bytes
      title: CreateFileRequest
    CreateFileResponse:
      properties:
        object:
          type: string
          title: Object
          default: file
        id:
          type: string
          title: Id
        customer_id:
          type: string
          title: Customer Id
        status:
          type: string
          title: Status
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        size_bytes:
          type: integer
          title: Size Bytes
        sha256:
          anyOf:
            - type: string
            - type: 'null'
          title: Sha256
        created_at:
          type: string
          title: Created At
        expires_at:
          type: string
          title: Expires At
        upload:
          $ref: '#/components/schemas/UploadDescriptor'
      type: object
      required:
        - id
        - customer_id
        - status
        - size_bytes
        - created_at
        - expires_at
        - upload
      title: CreateFileResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UploadDescriptor:
      properties:
        method:
          type: string
          title: Method
        url:
          type: string
          title: Url
        expires_at:
          type: string
          title: Expires At
      type: object
      required:
        - method
        - url
        - expires_at
      title: UploadDescriptor
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````