---
title: "Prepare the upload"
method: POST
path: "/v7/file_cmds/upload/prepare"
tags: ["Step 1"]
---

# Prepare the upload

`POST /v7/file_cmds/upload/prepare`

## Request

- Base URL: `https://example.com`
- URL: `https://example.com/v7/file_cmds/upload/prepare`
- 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`

Prepare the upload of a file in chunks.

## Request body

- object

## Response `200`

Successful response

- object
  - `file_id` string: File ID to be used in subsequent upload steps.

## 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)
