Sequenzy · Schema

EmailVariation

An alternative version of a campaign email, compared side by side on the editor canvas.

Email MarketingArtificial IntelligenceSoftware-as-a-ServiceAutomationDeveloper Tools

Properties

Name Type Description
id string
emailId string
parentId stringnull The nearest variation this one descends from that has not been discarded. Null when derived from the email.
label string Canvas label. V1, V2, ... for versions of the email; V2.1, V2.2, ... for branches of V2.
name string
summary stringnull What changed, in a sentence.
prompt stringnull The request that generated this variation.
style stringnull How far it was asked to move from its source, when AI generated it.
status string
error stringnull Why generation failed.
subject stringnull Subject this variation uses. Null keeps the email's subject.
previewText stringnull
blocks arraynull Null while generating or after a failure.
emailTheme objectnull The variation's own email theme. Null means it uses the email's theme.
fontFamily stringnull The variation's own body font stack. Null means it uses the email's font.
position objectnull Where the user placed it on the editor canvas, in canvas pixels. Null means the canvas places it automatically.
inUse boolean Whether using this variation would leave the campaign email unchanged (same blocks, and its own subject, preview text, theme and font when it has them). When several match, only the one used most rece
usedAt stringnull When this variation was last put in the campaign email.
createdAt string
updatedAt string
View JSON Schema on GitHub

JSON Schema

sequenzy-email-variation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sequenzy/json-schema/sequenzy-email-variation-schema.json",
  "title": "EmailVariation",
  "description": "An alternative version of a campaign email, compared side by side on the editor canvas.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sequenzy-campaigns-api-openapi.yml#/components/schemas/EmailVariation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "emailId": {
      "type": "string"
    },
    "parentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The nearest variation this one descends from that has not been discarded. Null when derived from the email."
    },
    "label": {
      "type": "string",
      "description": "Canvas label. V1, V2, ... for versions of the email; V2.1, V2.2, ... for branches of V2."
    },
    "name": {
      "type": "string"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "description": "What changed, in a sentence."
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ],
      "description": "The request that generated this variation."
    },
    "style": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "close",
        "fresh",
        "bold",
        null
      ],
      "description": "How far it was asked to move from its source, when AI generated it."
    },
    "status": {
      "type": "string",
      "enum": [
        "generating",
        "ready",
        "failed"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why generation failed."
    },
    "subject": {
      "type": [
        "string",
        "null"
      ],
      "description": "Subject this variation uses. Null keeps the email's subject."
    },
    "previewText": {
      "type": [
        "string",
        "null"
      ]
    },
    "blocks": {
      "type": [
        "array",
        "null"
      ],
      "description": "Null while generating or after a failure.",
      "items": {
        "$ref": "#/$defs/EmailBlock"
      }
    },
    "emailTheme": {
      "type": [
        "object",
        "null"
      ],
      "description": "The variation's own email theme. Null means it uses the email's theme."
    },
    "fontFamily": {
      "type": [
        "string",
        "null"
      ],
      "description": "The variation's own body font stack. Null means it uses the email's font."
    },
    "position": {
      "type": [
        "object",
        "null"
      ],
      "description": "Where the user placed it on the editor canvas, in canvas pixels. Null means the canvas places it automatically.",
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        }
      }
    },
    "inUse": {
      "type": "boolean",
      "description": "Whether using this variation would leave the campaign email unchanged (same blocks, and its own subject, preview text, theme and font when it has them). When several match, only the one used most recently is in use."
    },
    "usedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When this variation was last put in the campaign email."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "EmailBlock": {
      "type": "object",
      "description": "Email content block. The shape depends on the block type. Any block may carry a `conditions` array so it renders only for matching recipients, the structural `group` type wraps children in Stack, Row, Grid, or Overlay layout, and `conditional-group` adds if/else branching via `ifBranch` and `elseBranch` (each an object with a `children` array).",
      "required": [
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "html",
            "heading",
            "list",
            "button",
            "spacer",
            "divider",
            "image",
            "columns",
            "group",
            "conditional-group",
            "repeat",
            "card",
            "cta",
            "social",
            "logo",
            "header",
            "footer",
            "video",
            "product",
            "discount-code",
            "code",
            "countdown",
            "hero",
            "testimonial",
            "gallery",
            "badge",
            "table",
            "features",
            "image-card",
            "pricing",
            "author",
            "article",
            "rating",
            "stats",
            "steps",
            "product-grid",
            "poll"
          ]
        },
        "content": {
          "type": "string",
          "description": "Content for text, html, and heading-like blocks."
        },
        "label": {
          "type": "string",
          "maxLength": 120,
          "default": "Group",
          "description": "Editor label for a structural group block."
        },
        "layout": {
          "type": "string",
          "enum": [
            "stack",
            "row",
            "grid",
            "overlay"
          ],
          "default": "stack",
          "description": "Direct-child layout for a structural group block."
        },
        "columns": {
          "type": "integer",
          "minimum": 1,
          "maximum": 4,
          "default": 2,
          "description": "Number of columns used by a group with grid layout."
        },
        "gap": {
          "type": "integer",
          "minimum": 0,
          "maximum": 64,
          "default": 16,
          "description": "Gap in pixels between direct group children."
        },
        "stackOnMobile": {
          "type": "boolean",
          "default": true,
          "description": "Columns block only. Multi-column rows stack into a single column on screens 480px wide or narrower. Set to false to keep the columns side by side on mobile. Omit or set to true for the default stacking."
        },
        "padding": {
          "type": "integer",
          "minimum": 0,
          "maximum": 64,
          "default": 0,
          "description": "Uniform group padding in pixels; per-side styles.padding* fields override it."
        },
        "overlayColor": {
          "type": "string",
          "default": "#000000",
          "description": "Opaque fallback and shade color for an overlay group."
        },
        "overlayShade": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "default": 35,
          "description": "Overlay shade intensity as a percentage."
        },
        "overlayPosition": {
          "type": "string",
          "enum": [
            "top",
            "center",
            "bottom"
          ],
          "default": "center",
          "description": "Vertical position of overlay foreground content."
        },
        "children": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "description": "Recursive child blocks for group and repeat containers.",
          "items": {
            "$ref": "#/$defs/EmailBlock"
          }
        },
        "styles": {
          "type": "object",
          "description": "Per-block visual styles. For compatibility, style fields such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius can also be supplied at the block top level and are normalized into this object.",
          "additionalProperties": false,
          "properties": {
            "paddingTop": {
              "type": "number"
            },
            "paddingBottom": {
              "type": "number"
            },
            "paddingLeft": {
              "type": "number"
            },
            "paddingRight": {
              "type": "number"
            },
            "backgroundColor": {
              "type": "string"
            },
            "backgroundOpacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "description": "Background opacity percentage from 0 to 100."
            },
            "textColor": {
              "type": "string"
            },
            "textAlign": {
              "type": "string",
              "enum": [
                "left",
                "center",
                "right"
              ]
            },
            "keepAlign": {
              "type": "boolean",
              "description": "Keep a centered button, logo or footer centered when the email is left-aligned (layout.contentAlign left). Without it a left email moves these blocks left; right always stays."
            },
            "borderRadius": {
              "type": "number"
            },
            "borderColor": {
              "type": "string"
            },
            "borderWidth": {
              "type": "number"
            },
            "bleed": {
              "type": "boolean",
              "description": "Stretch the block edge-to-edge across the email container. Top-level blocks only."
            }
          }
        },
        "conditions": {
          "type": "array",
          "description": "Optional per-block display rules. The block renders only when every rule matches. The same shape is used for a conditional-group block's top-level `conditions`.",
          "items": {
            "type": "object",
            "required": [
              "id",
              "field",
              "operator",
              "value"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "field": {
                "type": "string",
                "enum": [
                  "variable",
                  "attribute",
                  "email",
                  "firstName",
                  "lastName"
                ],
                "description": "`variable` resolves a merge-tag path from the transactional send `variables` or an automation `event` payload (nested paths like `order.total` or `event.plan` work). `attribute` reads a stored subscriber attribute. `email`, `firstName`, and `lastName` read core subscriber fields."
              },
              "operator": {
                "type": "string",
                "enum": [
                  "is",
                  "is_not",
                  "contains",
                  "not_contains",
                  "gt",
                  "gte",
                  "lt",
                  "lte",
                  "is_empty",
                  "is_not_empty"
                ]
              },
              "value": {
                "type": "string",
                "description": "For `variable` and `attribute`, use `name:value` - the part before the colon is the variable path or attribute name, and the part after it is the comparison value. For `email`, `firstName`, and `lastName`, provide the plain comparison string."
              }
            }
          }
        }
      },
      "additionalProperties": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sequenzy-email-variation"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.