Skip to main content
POST
Generate Section Options
Generates 1 to 4 alternative versions of selected sections (top-level blocks) of the email or of one variation. Nothing is saved: each option holds replacement blocks that keep the selected blocks’ ids. To apply an option, swap those blocks into the variation’s blocks by id and call Update Variation. Changes the AI makes outside the selected sections are dropped, and options that change nothing are left out, so you can get fewer options than count. If none change anything, you get a 400 with the AI’s explanation. Emails that are a single raw HTML block can’t be varied by section. The request runs synchronously and can take up to a minute; a 500 means generation failed and can be retried.

Request

string
required
Campaign ID. Email campaigns only.
string[]
required
Ids of top-level blocks to vary, 1 to 50.
string
required
What should change, in any language. Up to 2,000 characters.
string
Vary this variation’s sections. It must be ready. Omit to vary the email’s saved content.
integer
default:"3"
How many options to generate, from 1 to 4.
string
How far the options move from the selected sections: close keeps its style and structure, fresh takes clearly different directions, and bold designs each option anew with its own layout, colors and fonts (a theme of its own). Defaults to fresh.

Response

array