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

# Generate Upload URL

> Generate presigned upload URL for file upload.

This endpoint returns a presigned URL that clients can use to upload files directly
to the storage backend, avoiding the need to stream through the control plane.

**Parameters:**
- **filename**: Name of the file to upload
- **folder**: Optional folder path to organize files

**Returns:**
- Presigned upload URL with instructions
- Download URL for later access
- File metadata and upload guidelines



## OpenAPI

````yaml openapi.json put /upload/{filename}
openapi: 3.1.0
info:
  title: Nano Helix API
  description: Protein AI model API platform.
  contact:
    name: Nano Helix Support
    email: support@nanohelix.ai
  license:
    name: Commercial License
  version: 1.0.0
servers: []
security: []
paths:
  /upload/{filename}:
    put:
      tags:
        - File Management
      summary: Generate Upload URL
      description: >-
        Generate presigned upload URL for file upload.


        This endpoint returns a presigned URL that clients can use to upload
        files directly

        to the storage backend, avoiding the need to stream through the control
        plane.


        **Parameters:**

        - **filename**: Name of the file to upload

        - **folder**: Optional folder path to organize files


        **Returns:**

        - Presigned upload URL with instructions

        - Download URL for later access

        - File metadata and upload guidelines
      operationId: upload_file_upload__filename__put
      parameters:
        - name: filename
          in: path
          required: true
          schema:
            type: string
            title: Filename
        - name: folder
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Folder
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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

````