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

# Upload template

> Initiates template upload process by returning a signed URL for secure file upload.



## OpenAPI

````yaml /openapi/powerpoint-api.json post /api/v1/templates
openapi: 3.1.0
info:
  title: SlideKit
  description: >-
    A comprehensive API for PowerPoint template management and presentation
    generation
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/templates:
    post:
      tags:
        - templates
      summary: Upload template
      description: >-
        Initiates template upload process by returning a signed URL for secure
        file upload.
      operationId: upload_template_initiate_api_v1_templates_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TemplateUploadRequest:
      properties:
        org_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Name
          description: >-
            Organization name for multi-tenancy. If provided, must match the API
            key's organization. If omitted, the API key's organization is used.
        filename:
          type: string
          title: Filename
          description: Name of the template file
        file_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: File Size
          description: File size in bytes (for pre-validation)
        metadata:
          $ref: '#/components/schemas/TemplateMetadata'
      type: object
      required:
        - filename
      title: TemplateUploadRequest
      description: Request schema for template upload initiation.
    TemplateUploadResponse:
      properties:
        template_id:
          type: string
          title: Template Id
        upload_url:
          type: string
          title: Upload Url
        expires_in:
          type: integer
          title: Expires In
          description: URL expiration time in seconds
        status:
          type: string
          title: Status
          default: pending
        upload_method:
          type: string
          title: Upload Method
          default: signed_url
        max_file_size:
          type: integer
          title: Max File Size
          description: Maximum file size in bytes (10MB)
          default: 10485760
        allowed_extensions:
          items:
            type: string
          type: array
          title: Allowed Extensions
      type: object
      required:
        - template_id
        - upload_url
        - expires_in
      title: TemplateUploadResponse
      description: Response schema for template upload initiation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TemplateMetadata:
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
        tags:
          items:
            type: string
          type: array
          title: Tags
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
      type: object
      title: TemplateMetadata
      description: Template metadata.
    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:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Production API key. Development/test deployments may also allow
        X-Org-Name.

````