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

# Chunked upload

Starts a chunked upload for a large file. Then:

1. Send each chunk to `POST /{workspace}/media/chunked/{upload_uuid}/upload` as `multipart/form-data` with `chunk` (the file part) and `chunk_index` (from 0).
2. Finish with `POST /{workspace}/media/chunked/{upload_uuid}/complete`. You can send `alt_text` and `folder`. This returns the file.

To cancel, send `DELETE /{workspace}/media/chunked/{upload_uuid}`.

> [!NOTE]
>
> Needs the Admin or Member role in the workspace.

**workspace** `string` *required*

The workspace UUID. Get it from [List workspaces](https://support.paddypost.com/api-reference/workspaces/list-workspaces.md).

**filename** `string` *required*

The file name.

**mime\_type** `string` *required*

The file type, such as `video/mp4`.

**total\_size** `integer` *required*

The size in bytes.

```bash cURL theme={null}
curl -X POST "https://app.paddypost.com/paddypost/api/WORKSPACE_UUID/media/chunked/initiate" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "launch.mp4",
  "mime_type": "video/mp4",
  "total_size": 52428800
}'
```

```json 200 theme={null}
{
  "upload_uuid": "e5f2\u2026",
  "chunk_size": 10485760,
  "total_chunks": 5
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.