---
title: "Finalize the upload"
method: POST
path: "/v7/file_cmds/upload/{file_id}/finalise_api"
tags: ["Step 3"]
---

# Finalize the upload

`POST /v7/file_cmds/upload/{file_id}/finalise_api`

## Request

- Base URL: `https://example.com`
- URL: `https://example.com/v7/file_cmds/upload/{file_id}/finalise_api`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://{your-auth-url}`
    - Client credentials
    - Token URL: `https://{your-bynder-domain}/v6/authentication/oauth2/token`

Finalize the upload after all chunks have been uploaded.

## Path parameters

- `file_id` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `fileName` string: Filename of the file.
  - `fileSize` integer: Size of the file in bytes.
  - `chunksCount` integer: Number of chunks the file was split into.

## Response `201`

Upload finalized successfully

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/bynder/apis/modern-stack-file-upload.md) - [All operations](https://skmtc.dev/bynder/apis/modern-stack-file-upload/llms.txt) - [OpenAPI document](https://skmtc.dev/bynder/apis/modern-stack-file-upload/revisions/352bdc496dc2?raw)
