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

# Upload File via Presigned URL

> Upload a file using a V3 presigned URL token. Supports all standard V3 upload fields in form-data.
If a custom CDN domain is configured and enabled, the response `url` will use the custom domain and `originalUrl` will contain the default storage URL.



## OpenAPI

````yaml /openapi.json post /v3/file/presigned-url/{token}
openapi: 3.0.0
info:
  description: >-
    This is the API server for Fivemanage, providing endpoints for media
    management, logging, and SDK integration.
  title: Fivemanage API
  termsOfService: https://fivemanage.com/legal/terms-of-service
  contact:
    name: Support
    email: support@fivemanage.com
  version: '1.0'
servers:
  - url: https://api.fivemanage.com/api
security: []
paths:
  /v3/file/presigned-url/{token}:
    post:
      tags:
        - Files
      summary: Upload File via Presigned URL
      description: >-
        Upload a file using a V3 presigned URL token. Supports all standard V3
        upload fields in form-data.

        If a custom CDN domain is configured and enabled, the response `url`
        will use the custom domain and `originalUrl` will contain the default
        storage URL.
      parameters:
        - description: Presigned URL token
          name: token
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  description: File to upload
                  type: string
                  format: binary
                filename:
                  description: Custom filename
                  type: string
                path:
                  description: Folder path
                  type: string
                metadata:
                  description: File metadata (JSON string)
                  type: string
                retention_exempt:
                  description: Exclude from retention policy
                  type: boolean
              required:
                - file
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.FileUploadResponseV3'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
components:
  schemas:
    api.FileUploadResponseV3:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/api.FileUploadResponseDataV3'
        status:
          type: string
          example: ok
    api.ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Error message
    api.FileUploadResponseDataV3:
      type: object
      properties:
        id:
          type: string
          example: 7F9pGhN8qwErT1vx5aZk
        originalUrl:
          type: string
          example: https://r2.fivemanage.com/23492kdx23121/7F9pGhN8qwErT1vx5aZk.jpg
        url:
          type: string
          example: https://r2.fivemanage.com/23492kdx23121/7F9pGhN8qwErT1vx5aZk.jpg

````