---
title: "Submit Doc Draft"
method: POST
path: "/api/v1/doc-drafts"
tags: ["authed"]
---

# Submit Doc Draft

`POST /api/v1/doc-drafts`

## Request

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

Land a Markdown draft for review in the authenticated caller's organization.

## Request body

- SubmitDocDraftRequest: A title and Markdown body, with optional conversation provenance. Unknown fields are ignored (pydantic's default).
  - `thread_id` string, uuid, nullable
  - `title` string, required
  - `body_md` string, required

## Response `201`

Successful Response

- SubmitDocDraftResponse: The submitted draft and its review request. Submission never publishes.
  - `request_id` string, uuid, required
  - `doc_id` string, uuid, required
  - `revision_id` string, uuid, required
  - `slug` string, required
  - `status` 'queued' | 'working' | 'ready_for_review' | 'approved' | 'dismissed' | 'failed' | 'unfunded', required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: No such conversation
- `405`: Method not allowed
- `409`: The corpus refused the doc (cap, no free slug)
- `422`: The draft was rejected; the message lists every problem
- `500`: Internal server error

## Changes

- **2026-11-03** `c6ac9fd6657f`: 7 info
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `401`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `403`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `404`
  - removed the `STEEP_LEARNING_DISABLED` enum value from the `error/code` response property for the response status `405`
  - …3 more

[Operation history](https://skmtc.dev/teaflask/apis/teaflask-api/changes/api/v1/doc-drafts/post.md)

---

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