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

# Create a file upload URL

> Returns a signed upload URL. Upload the file directly to the URL using a PUT request with the file binary as body. The file record is created in Propal immediately — the upload URL is valid for 1 hour.



## OpenAPI

````yaml /openapi.json post /v1/media/files
openapi: 3.1.0
info:
  title: Propal Public API
  version: 1.0.0
  description: >-
    Public REST API for Propal — proposals, leads, catalog, templates, themes,
    media, metrics, and organization. An MCP (Model Context Protocol) endpoint
    is also available at `POST /v1/mcp` for AI agents — it requires the
    `mcp:use` scope and exposes the same resources as tools, plus prefab section
    templates to compose proposals.
servers:
  - url: https://api.propal.io
    description: Production
security: []
paths:
  /v1/media/files:
    post:
      tags:
        - Media
      summary: Create a file upload URL
      description: >-
        Returns a signed upload URL. Upload the file directly to the URL using a
        PUT request with the file binary as body. The file record is created in
        Propal immediately — the upload URL is valid for 1 hour.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  description: File name with extension
                  example: hero-image.png
                content_type:
                  type: string
                  minLength: 1
                  description: MIME type
                  example: image/png
                folder_id:
                  type: string
                  format: uuid
                  description: Optional folder to upload into
              required:
                - name
                - content_type
      responses:
        '201':
          description: File record created with signed upload URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                    nullable: true
                  type:
                    type: string
                    nullable: true
                  size:
                    type: number
                    nullable: true
                  organization_id:
                    type: string
                    format: uuid
                  folder_id:
                    type: string
                    nullable: true
                    format: uuid
                  created_at:
                    type: string
                  uploadUrl:
                    type: string
                    description: Signed URL — PUT your file binary here within 1 hour
                required:
                  - id
                  - name
                  - type
                  - size
                  - organization_id
                  - folder_id
                  - created_at
                  - uploadUrl
        '400':
          description: Validation error
        '401':
          description: Unauthorized — missing or invalid API key
        '403':
          description: Forbidden — API key missing required scope
        '404':
          description: Resource not found
        '429':
          description: Rate limit exceeded
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key in format: pp_live_xxxxxxxxxxxxxxxxxxxxxxxx'

````