---
title: "Check an upload"
description: "Where an upload stands: how many parts arrived and, once finished, whether the check passed (state is done, with result) or failed (failed, with error)."
canonical_url: https://docs.markdrop.in/api/files/check-an-upload
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Check an upload

`GET https://api.markdrop.in/api/v1/files/uploads/{upload_id}`

Where an upload stands: how many parts arrived and, once finished, whether the check passed (`state` is `done`, with `result`) or failed (`failed`, with `error`).

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

## Path parameters

- `upload_id` (string, required): The `upload_id` that [Start a file upload](https://docs.markdrop.in/api/files/start-a-file-upload) returned.

## Responses

- `200`: OK.
  - `upload_id` (string)
  - `state` (string)
  - `file_name` (string)
  - `content_type` (string)
  - `size_bytes` (integer)
  - `sha256` (string)
  - `part_size` (integer)
  - `part_count` (integer)
  - `parts_uploaded` (array of object)
    - `part_number` (integer)
    - `etag` (string)
    - `size` (integer)
  - `target_slug` (string | null)
  - `expires_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `verified_bytes` (integer | null)
  - `result` (object | null)
    - `url` (string)
    - `markdrop_url` (string | null)
    - `workspace_url` (string | null)
    - `workspace_error` (string | null)
    - `slug` (string)
    - `version` (integer)
    - `size_bytes` (integer)
    - `content_type` (string)
    - `sha256` (string)
  - `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 https://api.markdrop.in/api/v1/files/uploads/UPLOAD_ID \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/files/uploads/UPLOAD_ID", {
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

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