---
title: "Start a Notion import"
description: "Opens an import of a Notion export zip (Export › Markdown & CSV, Include subpages on), up to 2 GB, and returns it (import, state uploading) with upload: a URL…"
canonical_url: https://docs.markdrop.in/api/import/start-a-notion-import
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Start a Notion import

`POST https://api.markdrop.in/api/v1/imports/notion`

Opens an import of a Notion export zip (Export › Markdown & CSV, Include subpages on), up to 2 GB, and returns it (`import`, state `uploading`) with `upload`: a URL to `PUT` the zip to, with its `Content-Type` header, valid 6 hours. `destination`: `workspace` (omit for My files), `team` (omit for company-wide), an existing `folder`, `new_folder` (default true: a new folder named `folder_name`, default the export's name; importing again with the same name merges into it). Imported items get the destination's default access, never public. 413 over 2 GB, 415 not a .zip, 429 with 3 imports going.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 20 per minute per IP address.
- **Guide:** [Import from Notion](https://docs.markdrop.in/pages/import-from-notion)

## Request body

`application/json`, required.

- `file_name` (string, required): 1–255 characters.
- `size_bytes` (integer, required): At least 1.
- `destination` (object)
  - `workspace` (string): File it in this workspace: the workspace's id. Up to 64 characters.
  - `team` (string): A team's id, slug or name; empty: company-wide. Up to 100 characters.
  - `folder` (string): An existing folder of `workspace`: its id or its path, like `guides/setup`. Up to 500 characters.
  - `new_folder` (boolean): Put everything in a new folder (My files: a page) named folder_name. Default `true`.
  - `folder_name` (string): Default: the export's name. Up to 100 characters.

## Responses

- `201`: Created.
- `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/imports/notion \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"file_name":"deck.pdf","size_bytes":1048576}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/imports/notion", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "file_name": "deck.pdf",
    "size_bytes": 1048576
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/imports/notion",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"file_name": "deck.pdf", "size_bytes": 1048576},
)
r.raise_for_status()
print(r.json())
```
