{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/switchlabs/main/json-schema/switchlabs-sequence-schema.json",
  "title": "Sequence",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crm-switchlabs-openapi.json#/components/schemas/Sequence",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "trigger_type": {
      "type": "string",
      "enum": [
        "manual",
        "webhook",
        "form_submission",
        "tag_added",
        "contact_created"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "paused",
        "archived"
      ]
    },
    "from_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "from_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "reply_to_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_enrolled": {
      "type": "integer"
    },
    "total_completed": {
      "type": "integer"
    },
    "total_unsubscribed": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}