---
title: "Finalize a file upload"
method: POST
path: "/v1beta/files/{file_id}/complete"
tags: ["Files"]
---

# Finalize a file upload

`POST /v1beta/files/{file_id}/complete`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/files/{file_id}/complete`
- Auth: HTTP bearer

Confirm the bytes were uploaded; the file becomes available for use.

## Path parameters

- `file_id` string, required: The ID of the pending file to finalize.

## Response `200`

Successful response

- CompleteFileUploadResponse
  - `file_id` string, required: ID of the finalized file.
  - `name` string, required: User-facing filename.
  - `size_bytes` integer, required: Size of the stored file in bytes, as reported by storage.
  - `content_type` string, required: MIME type of the stored file.
  - `crc32c` string, required: Base64-encoded CRC32C checksum reported by storage.

## Other responses

- `422`: Validation error

---

[API](https://skmtc.dev/indices/apis/indices-api.md) · [All operations](https://skmtc.dev/indices/apis/indices-api/llms.txt) · [OpenAPI document](https://skmtc.dev/indices/apis/indices-api/revisions/e0f2742c126c?raw)
