---
title: "Read pasted text into a draft"
method: POST
path: "/drafts/{draft_id}/autofill"
tags: ["draft"]
---

# Read pasted text into a draft

`POST /drafts/{draft_id}/autofill`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/drafts/{draft_id}/autofill`
- Auth: HTTP bearer

The workspace's own language model reads pasted text, such as an email thread, into a draft's blanks. Each suggestion comes back unapplied with the exact words it came from; a value whose words aren't in the text is dropped, and amounts and dates are taken from those words themselves. Directors and officers come from the records and are never suggested. A person accepts each suggestion with draft.update; nothing is applied here.

## Path parameters

- `draft_id` string, required

## Request body

- object
  - `text` string, required

## Response `200`

The result.

- object
  - `read_by` string, required
  - `model` string, required
  - `steering` boolean, required
  - `suggestions` object[], required
    - `name` string, required
    - `label` string, required
    - `value` string, required
    - `shown` string, required
    - `quote` string, required
  - `dropped` integer, required

## Other responses

- `default`: An RFC 9457 problem.

---

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