Rewrite blocks

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.

FieldTypeDescription
blocksobject[]requiredThe blocks to rewrite.
instructionstringrequiredHow, e.g. "shorter" or "add a line about the free trial".
kindstringbroadcast or template.
contextstringThe rest of the email as text, for context.

More guides