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

# Confirm file upload

> Signal that the file has been uploaded to the presigned URL returned by `/files/init`. Memic queues the file for chunking, embedding, and indexing.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/files/{file_id}/confirm
openapi: 3.1.0
info:
  title: Memic API
  description: >-
    Memic is a memory layer for AI applications. The Memic API lets you ingest
    documents, run semantic search and chat, and manage prompts — all scoped to
    an environment via a single API key.
  version: 1.0.0
servers:
  - url: https://api.memic.ai
    description: Production
security:
  - MemicApiKey: []
tags:
  - name: Endpoints
    description: All 10 Memic API endpoints.
paths:
  /api/v1/files/{file_id}/confirm:
    post:
      tags:
        - Endpoints
      summary: Confirm file upload
      description: >-
        Signal that the file has been uploaded to the presigned URL returned by
        `/files/init`. Memic queues the file for chunking, embedding, and
        indexing.
      operationId: confirmFileUpload
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: File Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileUploadResponseDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - MemicApiKey: []
components:
  schemas:
    FileUploadResponseDTO:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        name:
          type: string
          title: Name
        original_filename:
          type: string
          title: Original Filename
        size:
          type: integer
          title: Size
        mime_type:
          type: string
          title: Mime Type
        project_id:
          type: string
          format: uuid4
          title: Project Id
        status:
          $ref: '#/components/schemas/FileStatus'
        blob_storage_path:
          type: string
          title: Blob Storage Path
        reference_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Reference Id
        environment_id:
          anyOf:
            - type: string
              format: uuid4
            - type: 'null'
          title: Environment Id
        environment_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Slug
        folder_id:
          anyOf:
            - type: string
              format: uuid4
            - type: 'null'
          title: Folder Id
        folder_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Folder Name
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - name
        - original_filename
        - size
        - mime_type
        - project_id
        - status
        - blob_storage_path
        - created_at
      title: FileUploadResponseDTO
      description: Response DTO for file upload.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FileStatus:
      type: string
      enum:
        - uploading
        - uploaded
        - upload_failed
        - conversion_started
        - conversion_complete
        - conversion_failed
        - parsing_started
        - parsing_complete
        - parsing_failed
        - chunking_started
        - chunking_complete
        - chunking_failed
        - embedding_started
        - embedding_complete
        - embedding_failed
        - ready
      title: FileStatus
      description: Enum for file processing status.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    MemicApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Memic API key. Every key is bound to exactly one environment — get one
        from the Memic dashboard under API Keys.

````