Sequences

Edit sequence emails with AI

Changed on

Changes a sequence's emails with AI in one request, like the Emails view in the sequence editor. The prompt says what to change, in any language. Without emailIds the prompt decides which emails change, every email unless it names some. A look change is made identical across the emails it restyles, down to each kind of block's style. A prompt asking to make emails look like one of them copies that email's style exactly, without AI. A request for design variations ("make a few variations of email 1") returns 400; use Generate Sequence Email Variations instead. Each email succeeds or fails on its own; changed emails are saved unless dryRun is true. An email written in HTML is edited as HTML. A/B test steps and steps without an email are skipped. Runs synchronously; one request edits up to 12 emails. An email saved elsewhere while the AI worked is not overwritten (saved false with an error).

post/sequences/{sequenceId}/emails/edit

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/sequences/{sequenceId}/emails/edit
  • Auth
    HTTP bearer

Path parameters

sequenceIdstring required

Sequence ID

Request body

promptstring required

What should change, in any language.

emailIdsstring[]

Only change these emails (emailId from Get Sequence). Omit to let the prompt decide.

sectionIdsstring[]

Only change these top-level blocks. Needs exactly one emailIds entry.

dryRunboolean

Return the new content without saving it.

Example request

{
  "prompt": "Make the background cream and remove the header"
}

Response

Each email's result, in sending order

successboolean
dryRunboolean

Whether the changes were only returned, not saved.

Example response

{
  "success": true,
  "emails": [
    {
      "label": "Email 2"
    }
  ]
}

Changes