---
title: "Write personalized lines for the people missing them (mode missing) or rewrite everyone's (mode all). Rewriting everyone or more than 100 people returns needsConfirm and the estimate until called with confirmed: true"
method: POST
path: "/campaigns/{sequenceId}/personalization/write"
tags: ["campaigns"]
---

# Write personalized lines for the people missing them (mode missing) or rewrite everyone's (mode all). Rewriting everyone or more than 100 people returns needsConfirm and the estimate until called with confirmed: true

`POST /campaigns/{sequenceId}/personalization/write`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/campaigns/{sequenceId}/personalization/write`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Write personalized lines for the people missing them (mode missing) or rewrite everyone's (mode all). Rewriting everyone or more than 100 people returns needsConfirm and the estimate until called with confirmed: true.

## Path parameters

- `sequenceId` string, required

## Request body

- object
  - `mode` 'missing' | 'all': missing (default): only people without lines. all: rewrite everyone's.
  - `confirmed` boolean: true after the user accepts the estimate from needsConfirm.

## Response `200`

Successful response

- object
  - `version` number, required
  - `eligible` number, required: People who would get a line.
  - `estimatedCents` number, required: About 3 cents a person.
  - `needsConfirm` boolean, required: True when nothing was written: confirm with campaigns.personalization.write and confirmed: true.
  - `queued` number, required: People whose lines are being written now.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

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