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

# Mint presigned seed upload URL

> Get a secure presigned R2 PUT URL to upload your seed video directly.



## OpenAPI

````yaml /openapi.yaml post /digital-samples/{id}/seed/upload-url
openapi: 3.1.0
info:
  title: YPH Public API
  version: 1.0.0
  description: |
    Programmatic access to Digital Samples, Actors, Insta Swaps, and webhooks.

    Authenticate with `Authorization: Bearer yph_sk_live_…`.
servers:
  - url: https://api.yourproducthere.ai/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Account
  - name: Actors
  - name: Digital Samples
  - name: Insta Swaps
  - name: Webhooks
paths:
  /digital-samples/{id}/seed/upload-url:
    post:
      tags:
        - Digital Samples
      summary: Mint presigned seed upload URL
      description: Get a secure presigned R2 PUT URL to upload your seed video directly.
      parameters:
        - $ref: '#/components/parameters/SampleId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - contentType
                - contentLength
              properties:
                contentType:
                  type: string
                  example: video/mp4
                  description: The video mime type (e.g. video/mp4 or video/quicktime).
                contentLength:
                  type: integer
                  maximum: 83886080
                  description: >-
                    The total content length of the seed file in bytes. Must not
                    exceed 80MB (83,886,080 bytes).
      responses:
        '200':
          description: Presigned PUT URL generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploadUrl:
                    type: string
                    format: uri
                    description: >-
                      The temporary secure pre-signed R2 PUT URL. Valid for 1
                      hour.
                  key:
                    type: string
                    description: >-
                      The unique secure key under `seed-assets/<orgId>/...`
                      generated for this upload. Use this value as the `key`
                      parameter in the register endpoint.
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missingContentType:
                  summary: Missing Content Type
                  value:
                    code: REQUIRED_FIELD_MISSING
                    error: contentType is required
                    parameter: contentType
                missingContentLength:
                  summary: Missing Content Length
                  value:
                    code: REQUIRED_FIELD_MISSING
                    error: contentLength is required
                    parameter: contentLength
                invalidContentType:
                  summary: Unsupported Content Type
                  value:
                    code: INVALID_PARAMETER
                    error: unsupported contentType
                    parameter: contentType
                fileTooLarge:
                  summary: File Too Large
                  value:
                    code: INVALID_PARAMETER
                    error: file too large
                    parameter: contentLength
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Digital sample not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                sampleNotFound:
                  summary: Digital Sample Not Found
                  value:
                    code: RESOURCE_NOT_FOUND
                    error: digital sample not found
components:
  parameters:
    SampleId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
          description: >-
            A machine-readable, uppercase error code (e.g.
            `REQUIRED_FIELD_MISSING`, `INVALID_PARAMETER`, `RESOURCE_NOT_FOUND`,
            `UNAUTHORIZED`, `CONFLICT`).
        error:
          type: string
          description: A human-readable error message explaining why the request failed.
        parameter:
          type: string
          nullable: true
          description: >-
            The name of the specific input parameter or body field that caused
            the error (e.g. `seedVideoUrl`, `title`, etc.).
        details:
          type: object
          nullable: true
          description: >-
            Additional key-value pairs providing context or structured details
            about the failure.
      example:
        code: REQUIRED_FIELD_MISSING
        error: title is required
        parameter: title
        details: null
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthorized:
              summary: Invalid API Key
              value:
                code: UNAUTHORIZED
                error: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your organization API key starting with yph_sk_live_…

````