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

# Upload User Template

> Upload a document file as a personal/organization template.

The file is processed synchronously: text extraction, HTML conversion, and content indexing.
Supported formats: .docx, .pdf, .txt, .rtf, .md, .html, .htm
Templates are scoped to the uploading user or organization.



## OpenAPI

````yaml /openapi.json post /v1/templates/upload
openapi: 3.1.0
info:
  title: Universal Document AI API
  description: AI-powered document editing with multi-tenant organization support
  version: 2.0.0
servers: []
security: []
paths:
  /v1/templates/upload:
    post:
      tags:
        - v1
        - templates
      summary: Upload User Template
      description: >-
        Upload a document file as a personal/organization template.


        The file is processed synchronously: text extraction, HTML conversion,
        and content indexing.

        Supported formats: .docx, .pdf, .txt, .rtf, .md, .html, .htm

        Templates are scoped to the uploading user or organization.
      operationId: upload_user_template
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_upload_user_template'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_upload_user_template:
      properties:
        file:
          type: string
          format: binary
          title: File
      type: object
      required:
        - file
      title: Body_upload_user_template
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````