Sequences

List sequence email variations

Changed on

Lists the design variations of one email of a sequence, oldest first, with status (generating, ready, failed) and inUse (the email has exactly this content). Discarded variations are not listed. Poll this after Generate Sequence Email Variations until none is generating.

get/sequences/{sequenceId}/emails/{emailId}/variations

Request

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

Path parameters

sequenceIdstring required

Sequence ID

emailIdstring required

The email's ID, the emailId of its step from Get Sequence

Response

The email's variations

successboolean

Example response

{
  "success": true,
  "email": {
    "label": "Email 1"
  },
  "variations": [
    {
      "label": "V2.1",
      "name": "Warm and personal",
      "blocks": [
        {
          "id": "block_123",
          "type": "html",
          "content": "<h1>Hello</h1>",
          "styles": {
            "backgroundColor": "#f8fafc",
            "backgroundOpacity": 80,
            "textColor": "#111827",
            "borderRadius": 12,
            "borderColor": "#cbd5e1",
            "borderWidth": 1
          },
          "conditions": [
            {
              "id": "c1",
              "value": "plan:pro"
            }
          ]
        }
      ]
    }
  ]
}

Changes