Sequenzy · Schema

ABTest

Email MarketingArtificial IntelligenceSoftware-as-a-ServiceAutomationDeveloper Tools

Properties

Name Type Description
id string
companyId string
kind string Identifies which settings model applies to this test.
campaignId stringnull
automationNodeId stringnull
name stringnull
status string
testPercentage integer Campaign test audience percentage. Sequence tests retain the legacy internal sentinel value 100; use settings instead.
testDurationMinutes integer Campaign test duration. Sequence tests retain the legacy internal sentinel value 0; use settings instead.
winnerCriteria string
winnerGoalId stringnull Goal judged by `goal_conversion_rate` or `goal_value` (a goal ID or `default-revenue`). Null for other criteria.
winnerEventName stringnull Event judged by `event_rate`. Null for other criteria.
testType string Effective sequence variant strategy. Present for sequence tests.
winnerThreshold integer Effective sequence recipient threshold. Present for sequence tests.
autoSelectWinner boolean Whether a winner is picked automatically once winnerThreshold is reached and one variant leads. False after testing is resumed; contacts are then split until a winner is selected. Present for sequence
settings object Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, winnerCriteria, winnerGoalId, and winnerEventName; sequence tests return testType, winnerThreshold, wi
winningVariantId stringnull
winnerSelectedAt stringnull
testStartedAt stringnull
testEndsAt stringnull
pendingSampleUpdate objectnull Durable campaign sample request, null when absent or applied. Retry the same testPercentage after an interrupted request; error enables explicit discard.
progress objectnull Present on campaign detail and settings responses. Null if the campaign is missing. Counts unique recipient deliveries across retry attempts, excluding separate test emails.
createdAt string
updatedAt string
variants array
View JSON Schema on GitHub

JSON Schema

sequenzy-abtest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sequenzy/json-schema/sequenzy-abtest-schema.json",
  "title": "ABTest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sequenzy-a-b-tests-api-openapi.yml#/components/schemas/ABTest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "companyId": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "campaign",
        "sequence"
      ],
      "description": "Identifies which settings model applies to this test."
    },
    "campaignId": {
      "type": [
        "string",
        "null"
      ]
    },
    "automationNodeId": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "testPercentage": {
      "type": "integer",
      "description": "Campaign test audience percentage. Sequence tests retain the legacy internal sentinel value 100; use settings instead."
    },
    "testDurationMinutes": {
      "type": "integer",
      "description": "Campaign test duration. Sequence tests retain the legacy internal sentinel value 0; use settings instead."
    },
    "winnerCriteria": {
      "type": "string",
      "enum": [
        "open_rate",
        "click_rate",
        "goal_conversion_rate",
        "goal_value",
        "event_rate"
      ]
    },
    "winnerGoalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Goal judged by `goal_conversion_rate` or `goal_value` (a goal ID or `default-revenue`). Null for other criteria."
    },
    "winnerEventName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Event judged by `event_rate`. Null for other criteria."
    },
    "testType": {
      "type": "string",
      "enum": [
        "subject",
        "content"
      ],
      "description": "Effective sequence variant strategy. Present for sequence tests."
    },
    "winnerThreshold": {
      "type": "integer",
      "description": "Effective sequence recipient threshold. Present for sequence tests."
    },
    "autoSelectWinner": {
      "type": "boolean",
      "description": "Whether a winner is picked automatically once winnerThreshold is reached and one variant leads. False after testing is resumed; contacts are then split until a winner is selected. Present for sequence tests."
    },
    "settings": {
      "type": "object",
      "additionalProperties": true,
      "description": "Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, winnerCriteria, winnerGoalId, and winnerEventName; sequence tests return testType, winnerThreshold, winnerCriteria, winnerGoalId, and winnerEventName."
    },
    "winningVariantId": {
      "type": [
        "string",
        "null"
      ]
    },
    "winnerSelectedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "testStartedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "testEndsAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "pendingSampleUpdate": {
      "type": [
        "object",
        "null"
      ],
      "description": "Durable campaign sample request, null when absent or applied. Retry the same testPercentage after an interrupted request; error enables explicit discard.",
      "properties": {
        "id": {
          "type": "string"
        },
        "testPercentage": {
          "type": "integer"
        },
        "requestedAt": {
          "type": "string",
          "format": "date-time"
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Optional publication claim timestamp."
        },
        "error": {
          "type": "string"
        }
      }
    },
    "progress": {
      "type": [
        "object",
        "null"
      ],
      "description": "Present on campaign detail and settings responses. Null if the campaign is missing. Counts unique recipient deliveries across retry attempts, excluding separate test emails.",
      "properties": {
        "campaignStatus": {
          "type": "string"
        },
        "pauseReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "audienceSize": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Original send-time audience size; null for legacy campaigns without an estimate."
        },
        "committed": {
          "type": "integer",
          "description": "Recipients with a durable send attempt, including pending or failed sends."
        },
        "sent": {
          "type": "integer",
          "description": "Recipients with a sentAt timestamp on an attempt."
        },
        "remaining": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Audience size minus committed recipients, floored at zero; null when size is unavailable."
        },
        "minimumTestPercentage": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Minimum whole percentage that contains committed recipients, at least 5; null without audience size. Workers revalidate against later sends."
        },
        "variants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "variantId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "committed": {
                "type": "integer"
              },
              "sent": {
                "type": "integer"
              },
              "pending": {
                "type": "integer"
              },
              "failed": {
                "type": "integer",
                "description": "Recipients with failed attempts and no successful or pending attempt."
              }
            }
          }
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "variants": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ABTestVariant"
      }
    }
  },
  "$defs": {
    "ABTestVariant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "variantId": {
          "type": "string"
        },
        "abTestId": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "variantLabel": {
          "type": "string"
        },
        "emailId": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "previewText": {
          "type": [
            "string",
            "null"
          ]
        },
        "blocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmailBlock"
          }
        },
        "testSends": {
          "type": "integer"
        },
        "testOpens": {
          "type": "integer"
        },
        "testClicks": {
          "type": "integer"
        },
        "isWinner": {
          "type": "boolean"
        },
        "localizations": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "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-abtest"
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.