---
title: "Finish many file uploads"
description: "Publishes up to 50 uploads at once, with the parts storage received, waiting for their checks together."
canonical_url: https://docs.markdrop.in/api/files/finish-many-file-uploads
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Finish many file uploads

`POST https://api.markdrop.in/api/v1/files/uploads/batch/complete`

Publishes up to 50 uploads at once, with the parts storage received, waiting for their checks together. Per upload, `status` is what [Finish a file upload](https://docs.markdrop.in/api/files/finish-a-file-upload) would answer: `200` with `result`, `202` still checking (poll its status), or an error with `error`.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per minute per IP address.
- **CLI:** `markdrop upload ./exports`
- **MCP tool:** `complete_uploads` ([tools](https://docs.markdrop.in/ai/tools))

## Request body

`application/json`, required.

- `upload_ids` (array of string, required): 1–50 items.

## Responses

- `200`: OK.
  - `results` (array of object)
    - `upload_id` (string)
    - `status` (integer)
    - `state` (string)
    - `result` (object | null)
    - `error` (string | null)
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X POST https://api.markdrop.in/api/v1/files/uploads/batch/complete \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"upload_ids":["up_UPLOAD_ID_1","up_UPLOAD_ID_2"]}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/files/uploads/batch/complete", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "upload_ids": [
      "up_UPLOAD_ID_1",
      "up_UPLOAD_ID_2"
    ]
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/files/uploads/batch/complete",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"upload_ids": ["up_UPLOAD_ID_1", "up_UPLOAD_ID_2"]},
)
r.raise_for_status()
print(r.json())
```

**CLI**

```bash
markdrop upload ./exports
```
