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

# Get Upload URL

> Get a presigned URL for direct file upload

Get a presigned upload URL for directly uploading files to a collection. This is useful for client-side uploads where you want to avoid routing file data through your server.

<Note>
  * The presigned URL expires after a limited time
  * Upload the file directly to the returned URL using a PUT request
  * A video ID is pre-assigned and returned immediately
</Note>

<CardGroup cols={2}>
  <Card title="Upload to Collection" icon="upload" href="/api-reference/collections/upload_to_collection">
    Standard server-side upload
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /collection/{collection_id}/upload_url
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /collection/{collection_id}/upload_url:
    get:
      tags:
        - Collections
      summary: Get presigned upload URL
      parameters:
        - name: collection_id
          in: path
          required: true
          schema:
            type: string
            example: default
        - name: name
          in: query
          schema:
            type: string
            example: my_video.mp4
      responses:
        '200':
          description: Upload URL generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      upload_url:
                        type: string
                        example: https://s3.amazonaws.com/...
                      video_id:
                        type: string
                        example: m-12345
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````