POST /ai/rewrite
Rewrite blocks with an instruction, in the brand voice. Ids, variables, links and styles are kept unless the instruction changes them. POST /ai/subjects with { text } suggests subject lines.
| Field | Type | Description | |
|---|---|---|---|
blocks | object[] | required | The blocks to rewrite. |
instruction | string | required | How, e.g. "shorter" or "add a line about the free trial". |
kind | string | broadcast or template. | |
context | string | The rest of the email as text, for context. |