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

# Get an upload target

> Selects an available file server and returns its base URL with an opaque upload session.

The response initializes a separate file-server transfer. It does not upload a file to this endpoint. Treat the session as a secret.




## OpenAPI

````yaml /openapi.yaml get /v1/upload
openapi: 3.1.0
info:
  title: Videobase API
  version: 1.0.0
  description: >
    Manage Videobase accounts, uploads, folders, videos, thumbnails, and
    subtitles.


    All operations require a Videobase API key. Header authentication is
    recommended.
servers:
  - url: https://api.videobase.com
    description: Production
security:
  - ApiKeyHeader: []
  - ApiKeyQuery: []
tags:
  - name: Account
    description: Account details and reports.
  - name: Uploads
    description: Direct and remote upload workflows.
  - name: Folders
    description: Folder organization.
  - name: Videos
    description: Video metadata and presentation settings.
  - name: Subtitles
    description: Video subtitle tracks.
paths:
  /v1/upload:
    get:
      tags:
        - Uploads
      summary: Get an upload target
      description: >
        Selects an available file server and returns its base URL with an opaque
        upload session.


        The response initializes a separate file-server transfer. It does not
        upload a file to this endpoint. Treat the session as a secret.
      operationId: getUploadTarget
      responses:
        '200':
          description: Available upload target.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadTarget'
              example:
                url: https://fs1.vbvd.net
                session: MTIzOjoyOjo...redacted
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    UploadTarget:
      type: object
      required:
        - url
        - session
      properties:
        url:
          type: string
          format: uri
          description: Base URL of the selected file server.
        session:
          type: string
          description: Opaque upload authorization. Treat it as a secret.
    Error:
      type: object
      required:
        - message
        - status
      properties:
        message:
          type: string
          description: Human-readable failure reason. Do not treat it as a stable enum.
        status:
          type: integer
          const: 500
  responses:
    Error:
      description: >-
        Application error. The current API uses HTTP 500 for authentication,
        validation, missing-resource, rate-limit, and server failures.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: File not found
            status: 500
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Recommended. Your 16-character Videobase API key.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
      description: >-
        Legacy alternative. Prefer `X-Api-Key` because query strings are
        commonly logged.

````