---
title: "Create Doc"
method: POST
path: "/api/doc"
---

# Create Doc

`POST /api/doc`

## Request

- Base URL: `https://api.drillflow.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.drillflow.de/api/doc`
- Auth: none declared

## Request body

- ShareRequest
  - `data` object, required
  - `preview` string, nullable

## Response `200`

Successful Response

- ShareResponse
  - `slug` string, required
  - `url` string, required
  - `warnings` string[]
  - `expires_at` integer, nullable

## Other responses

- `422`: Validation Error

---

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