---
title: "Create Document"
method: POST
path: "/api/documents/new"
tags: ["documents"]
---

# Create Document

`POST /api/documents/new`

## Request

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

JSON create: blank board, template instance, or AI diagram.

## Request body

- CreateDocBody: Request body for POST /api/documents/new (blank board / template / AI).
  - `name` string, nullable
  - `svg` string, nullable
  - `diagram` object, nullable

## 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
  - `link_policy` string

## Other responses

- `422`: Validation Error

---

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