---
title: "Auto-draft one writer's-bible document from the premise + chapters"
method: POST
path: "/books/{bookId}/documents/{kind}/draft"
---

# Auto-draft one writer's-bible document from the premise + chapters

`POST /books/{bookId}/documents/{kind}/draft`

## Request

- Base URL: `https://anthra.com/api/v1`
- URL: `https://anthra.com/api/v1/books/{bookId}/documents/{kind}/draft`
- Auth: HTTP bearer

Pass `confirm: true` to overwrite an existing document of the same kind. Returns the new document length.

## Request body

- object
  - `confirm` boolean
  - `hint` string, nullable

## Response `200`

OK

---

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