---
title: "Import from Notion (connected)"
description: "Imports pages (up to 50 Notion page or database ids; everything under them comes too) into destination (as for an export: workspace, team, folder, new_folder,…"
canonical_url: https://docs.markdrop.in/api/import/import-from-notion-connected
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Import from Notion (connected)

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

Imports `pages` (up to 50 Notion page or database ids; everything under them comes too) into `destination` (as for an export: `workspace`, `team`, `folder`, `new_folder`, `folder_name`; omit `workspace` for My files) and returns the import (`source: api`), followed like any Notion import. `exclude`: ids under those pages to leave out (sub-pages, databases or database rows, with everything under them); a sync never brings them back, but pages and rows added in Notion later still come. `keep_in_sync`: bring Notion's changes over about every 15 minutes, one way. Imported items get the destination's default access, never public; you must be able to add pages there.

- **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#connect-notion)

## Request body

`application/json`, required.

- `connection_id` (string): Default: your only Notion connection. Matches `^[A-Za-z0-9_-]{4,64}$`.
- `pages` (array of object, required): The pages / databases to import (their sub-pages come with them). 1–50 items.
  - `id` (string, required): A Notion page or database id. 32–36 characters.
  - `kind` (string): One of `page`, `database`. One of `page`, `database`.
  - `title` (string): Shown on the page and in link previews. Up to 200 characters.
- `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.
- `keep_in_sync` (boolean): Import again about every 15 minutes (only what changed). Default `false`.
- `exclude` (array of string): Notion ids under the chosen pages to leave out (unticked in the picker), with everything under them. Keep in sync remembers them; pages added in Notion later still come. Up to 2,000 items.

## 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/notion/import \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pages":[]}'
```

**JavaScript**

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

**Python**

```python
import os

import requests

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