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

# Complete Upload



## OpenAPI

````yaml /openapi.json post /v1/projects/{project_id}/upload/complete
openapi: 3.1.0
info:
  title: NanoClip Public API
  version: 0.1.0
  description: >-
    Upload video or audio and extract transcript, speaker, face, scene, and
    retake intelligence.
servers:
  - url: https://api.nanoclip.ai
security: []
paths:
  /v1/projects/{project_id}/upload/complete:
    post:
      summary: Complete Upload
      operationId: complete_upload_v1_projects__project_id__upload_complete_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CompleteUploadResponse:
      properties:
        project_id:
          type: string
          title: Project Id
        status:
          $ref: '#/components/schemas/ProjectStatus'
        created_at:
          type: string
          title: Created At
        source:
          $ref: '#/components/schemas/ProjectSourceResponse'
        source_size_bytes:
          type: integer
          title: Source Size Bytes
        duration:
          type: number
          title: Duration
        width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Height
      type: object
      required:
        - project_id
        - status
        - created_at
        - source
        - source_size_bytes
        - duration
      title: CompleteUploadResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProjectStatus:
      type: string
      enum:
        - created
        - uploading
        - ready
        - failed
      title: ProjectStatus
      description: |-
        Public project lifecycle: creation → upload → analyzable (or failed).

        One of three distinct status vocabularies on the /v1 wire (REE-75) —
        project lifecycle, command dispatch, and analysis result are different
        state machines and are declared as different enums on purpose.
    ProjectSourceResponse:
      properties:
        type:
          type: string
          title: Type
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        media_kind:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Kind
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
      type: object
      required:
        - type
      title: ProjectSourceResponse
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````