---
title: "Propose a rewrite of one paragraph"
method: POST
path: "/api/v1/templates/redraft"
tags: ["Templates"]
---

# Propose a rewrite of one paragraph

`POST /api/v1/templates/redraft`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/templates/redraft`
- Auth: API key in cookie `better-auth.session_token`

Returns a rewritten version of one paragraph in the same language. Merge fields are checked back against the original and the proposal is refused if one moved. Nothing is written to the template: the response is a suggestion for the owner to accept or discard.

## Request body

- object
  - `text` string, required
  - `how` 'plainer' | 'shorter' | 'firmer' | 'warmer', required: What to change about it. Never what it says, only how it says it.

## Response `200`

The proposal.

- object
  - `ok` unknown, required
  - `data` object, required
    - `text` string, required: The proposal. The caller shows it beside the original and saves neither without a choice.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `422`: The model returned nothing usable, and the reason why.
- `429`: Too many rewrites.

---

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