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

# Start a presigned video upload

> Start a multipart video upload (.mp4/.mov, ≤150MB). The client PUTs the
file to the returned presigned part URLs in `part_size_bytes` chunks — the
bytes go straight to S3, never through this API — then calls
`/ingest/video/complete` with the collected ETags. Nothing is ingested
until complete verifies the object and publishes the event.

<Snippet file="api/ingestion/ingest-video-upload-url.mdx" />


## OpenAPI

````yaml POST /v1/custom-connectors/{connector_id}/ingest/video/upload-url
openapi: 3.1.0
info:
  title: Adapter API
  description: Connect and sync data from any SaaS tool.
  version: 0.1.0
servers:
  - url: https://api.adapter.com
security:
  - ApiKeyAuth: []
tags:
  - name: connections
    description: Manage OAuth connections to data sources.
paths:
  /v1/custom-connectors/{connector_id}/ingest/video/upload-url:
    post:
      tags:
        - ingestion
      summary: Start a presigned video upload
      description: >-
        Start a multipart video upload (.mp4/.mov, ≤150MB). The client PUTs the

        file to the returned presigned part URLs in `part_size_bytes` chunks —
        the

        bytes go straight to S3, never through this API — then calls

        `/ingest/video/complete` with the collected ETags. Nothing is ingested

        until complete verifies the object and publishes the event.
      operationId: ingest_video_upload_url
      parameters:
        - name: connector_id
          in: path
          required: true
          schema:
            type: string
            title: Connector Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoUploadUrlRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoUploadUrlResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VideoUploadUrlRequest:
      properties:
        filename:
          type: string
          title: Filename
          description: Original filename; must end in .mp4 or .mov.
          examples:
            - drone-show.mp4
        size_bytes:
          type: integer
          exclusiveMinimum: 0
          title: Size Bytes
          description: Exact size of the file in bytes. Verified server-side on complete.
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
          description: >-
            video/mp4 or video/quicktime. Inferred from the filename extension
            if omitted.
      type: object
      required:
        - filename
        - size_bytes
      title: VideoUploadUrlRequest
    VideoUploadUrlResponse:
      properties:
        file_id:
          type: string
          title: File Id
          description: external_id the resulting event will carry; pass back on complete.
        upload_id:
          type: string
          title: Upload Id
          description: S3 multipart upload id; pass back on complete.
        key:
          type: string
          title: Key
          description: S3 key the video will land at.
        part_size_bytes:
          type: integer
          title: Part Size Bytes
          description: >-
            Upload the file in consecutive chunks of this size (last part may be
            smaller).
        part_urls:
          items:
            type: string
          type: array
          title: Part Urls
          description: >-
            Presigned PUT URLs, one per part, in part order. Collect each
            response's ETag.
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
          description: Validity window of the presigned URLs.
      type: object
      required:
        - file_id
        - upload_id
        - key
        - part_size_bytes
        - part_urls
        - expires_in_seconds
      title: VideoUploadUrlResponse
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: Pass your `pk_live_...` API key as a Bearer token.

````