---
title: "Import Document"
method: POST
path: "/api/documents/import"
tags: ["documents"]
---

# Import Document

`POST /api/documents/import`

## Request

- Base URL: `https://board.noddle.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://board.noddle.dev/api/documents/import`
- Auth: none declared

Import a foreign diagram file as a NEW editable board.

Supported today: draw.io / diagrams.net (``.drawio`` / ``.xml`` — plain or
deflate-compressed, multi-page → noddle pages). Mermaid ``.mmd`` files are
handled client-side through the existing text→diagram AI path; ``.vsdx``
is a spike (docs/spikes). A preview SVG is baked so the dashboard card
isn't blank before the first open+save.

## Response `200`

Successful Response

- DocMeta: Document metadata as returned to clients.
  - `id` string, required
  - `name` string, required
  - `created_at` number, required
  - `updated_at` number, required
  - `folder_id` string, nullable
  - `owner_id` string, nullable
  - `team_id` string, nullable
  - `link_policy` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noddle/apis/noddle-board.md) · [All operations](https://skmtc.dev/noddle/apis/noddle-board/llms.txt) · [OpenAPI document](https://skmtc.dev/noddle/apis/noddle-board/revisions/7f324e389516?raw)
