---
title: "Create Document"
method: POST
path: "/documents"
---

# Create Document

`POST /documents`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/documents`
- Auth: none declared

## Request body

- CreateDocumentRequest
  - `workspace_id` string, required
  - `name` string
  - `folder_id` string, nullable

## Response `200`

Successful Response

- DocumentOut
  - `id` string, required
  - `workspace_id` string, required
  - `title` string, required
  - `name` string
  - `folder_id` string, nullable
  - `markdown` string, required
  - `frontmatter` object
  - `share_token` string, nullable
  - `version` string
  - `assets` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/wunel/apis/wunel-api.md) · [All operations](https://skmtc.dev/wunel/apis/wunel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wunel/apis/wunel-api/revisions/872fe0687a60?raw)
