---
title: "Upload one part to a short upload link"
description: "Sends the bytes of one upload part to its short link (https://api.markdrop.in/u/<token>), which the MCP upload tools and short_links: true hand out instead of…"
canonical_url: https://docs.markdrop.in/api/files/upload-one-part-to-a-short-upload-link
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Upload one part to a short upload link

`PUT https://api.markdrop.in/u/{token}`

Sends the bytes of one upload part to its short link (`https://api.markdrop.in/u/<token>`), which the MCP upload tools and `short_links: true` hand out instead of a long presigned URL. No sign-in: the link is the permission. It takes exactly the part's size, once, within 60 minutes; send it with its length (`curl -T FILE <link>`), never a piped body. For a one-part upload the SHA-256 is checked here too, and a mismatch stores nothing. Returns the part's number and ETag.

- **Authentication:** No token needed.
- **Rate limit:** 600 per minute per IP address.

## Path parameters

- `token` (string, required)

## Responses

- `200`: Stored. Returns `{ok, upload_id, part_number, part_count, size, etag}`.
- `400`: Fewer bytes than the part's size arrived.
- `404`: No such link.
- `409`: The link is in use by another request.
- `410`: The link expired, was already used, or its upload ended.
- `411`: No Content-Length: send the file with `curl -T`.
- `413`: More bytes than the part's size.
- `422`: A one-part upload whose bytes don't match its SHA-256.
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/u/INVITE_TOKEN
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/u/INVITE_TOKEN", {
  method: "PUT",
});
const data = await res.json();
```

**Python**

```python
import requests

r = requests.put("https://api.markdrop.in/u/INVITE_TOKEN")
r.raise_for_status()
print(r.json())
```
