Sequenzy · Schema

Segment

Email MarketingArtificial IntelligenceSoftware-as-a-ServiceAutomationDeveloper Tools

Properties

Name Type Description
id string
name string
filters array Legacy v1 flat filters, or flattened leaves for v2 responses.
filterJoinOperator string
format string
root object
subscriberCount integer
activeSubscriberCount integer
View JSON Schema on GitHub

JSON Schema

sequenzy-segment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sequenzy/json-schema/sequenzy-segment-schema.json",
  "title": "Segment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sequenzy-segments-api-openapi.yml#/components/schemas/Segment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "filters": {
      "type": "array",
      "description": "Legacy v1 flat filters, or flattened leaves for v2 responses.",
      "items": {
        "$ref": "#/$defs/FilterLeaf"
      }
    },
    "filterJoinOperator": {
      "type": "string",
      "enum": [
        "and",
        "or"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "v1",
        "v2"
      ]
    },
    "root": {
      "anyOf": [
        {
          "allOf": [
            {
              "$ref": "#/$defs/FilterGroup"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "subscriberCount": {
      "type": "integer"
    },
    "activeSubscriberCount": {
      "type": "integer"
    }
  },
  "$defs": {
    "FilterGroup": {
      "type": "object",
      "description": "A nested AND/OR filter group.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "group"
          ]
        },
        "id": {
          "type": "string"
        },
        "joinOperator": {
          "type": "string",
          "enum": [
            "and",
            "or"
          ]
        },
        "children": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/FilterLeaf"
              },
              {
                "$ref": "#/$defs/FilterGroup"
              }
            ]
          }
        }
      },
      "required": [
        "kind",
        "id",
        "joinOperator",
        "children"
      ]
    },
    "FilterLeaf": {
      "type": "object",
      "description": "A single subscriber filter rule.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "filter"
          ],
          "description": "Required when the filter is inside a v2 root group."
        },
        "id": {
          "type": "string"
        },
        "field": {
          "type": "string",
          "enum": [
            "status",
            "phone",
            "smsStatus",
            "tag",
            "email",
            "emailProvider",
            "added",
            "firstName",
            "lastName",
            "list",
            "attribute",
            "event",
            "segment",
            "stripeProduct",
            "stripeCurrentProduct",
            "stripeTrialProduct",
            "commerceProduct",
            "commerceCollection",
            "emailSent",
            "emailDelivered",
            "emailOpened",
            "emailClicked",
            "emailBounced",
            "emailComplained",
            "pushDevice",
            "pushSent",
            "pushDelivered",
            "pushClicked"
          ]
        },
        "operator": {
          "type": "string",
          "description": "Valid operators depend on the field. status/segment: is, is_not. smsStatus: is, is_not (values: subscribed, unsubscribed, not_subscribed). phone: is_not_empty, is_empty (empty value). tag: contains, not_contains, is_empty, is_not_empty. email: contains, not_contains for domain or substring matching, is, is_not for an exact case-insensitive address. emailProvider/list: is, is_not, is_empty, is_not_empty. firstName/lastName: contains, not_contains, is_empty, is_not_empty. added: less_than, more_than. attribute: is, is_not, is_empty, is_not_empty, gte, lte, gt, lt, contains, not_contains. event and email engagement fields: is, is_not, at_least, less_than_count. emailBounced also supports is_temporary_bounce and is_permanent_bounce. stripeProduct: is, is_not, at_least, less_than_count. stripeCurrentProduct/stripeTrialProduct: is, is_not, gte, lte, gt, lt. commerceProduct/commerceCollection: is, is_not, at_least, less_than_count. pushDevice: is, is_not (values: any, web, ios, android; matches active push devices). pushSent/pushDelivered/pushClicked: is, is_not with a time range such as 30d or all (test sends are ignored).",
          "enum": [
            "is",
            "is_not",
            "is_empty",
            "is_not_empty",
            "contains",
            "not_contains",
            "less_than",
            "more_than",
            "is_temporary_bounce",
            "is_permanent_bounce",
            "at_least",
            "less_than_count",
            "gte",
            "lte",
            "gt",
            "lt"
          ]
        },
        "value": {
          "type": "string",
          "description": "Event filters use `eventName:30d` or `eventName:5:30d`. Segment filters use a segment ID. Email engagement fields use a rolling time window (`24h`, `7d`, `30d`, `90d`, `180d`, `all`; whole hours from `1h` to `8760h` are measured to the exact hour; count filters are exact up to `168h`), a specific campaign via `campaign:<campaign_id>`, an email-type scope via `marketing:<timeRange>` (marketing-policy campaign, automation, and Send API traffic) or `transactional:<timeRange>` (transactional-policy sends; with is/is_not or the emailBounced subtype operators; scopes require a send-time policy snapshot, so ambiguous older events remain unscoped), or `count:timeRange` (such as `10:30d` or `10:all`) with at_least/less_than_count. Stripe product filters use `prod_123` for bought/current/trialing checks, `prod_123:3` for payment thresholds, and product-scoped values such as `prod_123:is_canceled`, `prod_123:cancels_at:2026-05-26`, `prod_123:end_at:2026-05-26`, or `prod_123:start_at:7 days ago`. Commerce product filters use `provider:productId` (provider one of `shopify`, `woocommerce`, `api`), optionally with an order-count threshold (`shopify:42:2`); a bare product ID matches the ID on any provider. Commerce collection filters use a collection ID or handle (`skincare`), optionally provider-prefixed and/or with an order-count threshold (`shopify:skincare:2`), and match anyone whose orders contain any product currently in that collection. Push device filters use `any`, `web`, `ios`, or `android`. Push sent, delivered, and clicked filters use a time range (`7d`, `30d`, `all`)."
        }
      },
      "required": [
        "id",
        "field",
        "operator",
        "value"
      ]
    }
  }
}

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-segment"
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.