Campaigns

Lists the campaign email's variations, oldest first. Variations are alternative versions of the email that you compare side by side on the editor canvas; the campaign keeps sending its email until you use one. Discarded variations are not listed. Each variation's parentId points at the nearest variation it descends from that has not been discarded. Email campaigns only.

get/campaigns/{campaignId}/variations

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/campaigns/{campaignId}/variations
  • Auth
    HTTP bearer

Path parameters

campaignIdstring required

Campaign ID

Response

Variations

successboolean

Example response

{
  "success": true,
  "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