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

# Finalize Resumable Upload

> Confirm a resumable upload is complete

<Info>
  **Product**: Video Datalake
  **Host**: `https://api.memories.ai/datalake/v1`
  **Auth**: `Authorization: sk-mai-...`
</Info>

Confirm a resumable upload finished and trigger indexing. Only valid for resumable videos. Fully uploaded → `202` (idempotent). Not yet complete → `409`.

<Note>
  **Custom method `:finalize`** — this is an action on the resource, not standard CRUD. Call it exactly as `POST /datalake/v1/videos/{id}:finalize`.
</Note>

<Note>
  **Pricing:** Free — management / read (no charge). · See [Pricing](/datalake/pricing) for the full model.
</Note>

## Response Fields

<ResponseField name="operation" type="string">Ingest Operation handle.</ResponseField>


## OpenAPI

````yaml POST /datalake/v1/videos/{id}:finalize
openapi: 3.1.0
info:
  title: Memories.ai DataLake API 2.0
  version: 2026-08
  description: OpenAPI mapping used by Mintlify Try it for the DataLake API 2.0 docs.
servers:
  - url: https://api.memories.ai
security:
  - ApiKeyAuth: []
paths:
  /datalake/v1/videos/{id}:finalize:
    post:
      tags:
        - Videos — Upload
      summary: Confirm a resumable upload is complete
      description: >-
        Confirm a resumable upload finished and trigger indexing. Only valid for
        resumable videos. Fully uploaded → `202` (idempotent). Not yet complete
        → `409`.
      operationId: finalize_upload
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Video ID from the resumable session.
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                video_id: vid_xxx
                operation: op_xxx
                status: processing
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Send `Authorization: sk-mai-...`'

````