{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/paubox/main/json-schema/paubox-drip-campaign-response-schema.json",
  "title": "DripCampaignResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paubox-drip-campaigns-api-openapi.yml#/components/schemas/DripCampaignResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DripCampaignResponse_data"
    }
  },
  "$defs": {
    "DripCampaignResponse_data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Drip campaign ID"
        },
        "type": {
          "type": "string",
          "description": "Resource type",
          "enum": [
            "drip_campaign"
          ]
        },
        "attributes": {
          "$ref": "#/$defs/DripCampaignResponse_data_attributes"
        }
      }
    },
    "DripCampaignResponse_data_attributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the drip campaign"
        },
        "subscription_list_id": {
          "type": "string",
          "description": "Subscription list ID"
        },
        "subscription_list_name": {
          "type": "string",
          "description": "Name of the subscription list"
        },
        "state": {
          "type": "string",
          "description": "Current state of the drip campaign"
        },
        "updated_at": {
          "type": "string",
          "description": "Last update timestamp",
          "format": "date-time"
        },
        "start_trigger": {
          "type": "string",
          "description": "Trigger condition to start the drip campaign"
        },
        "subscriber_count": {
          "type": "integer",
          "description": "Number of subscribers in the campaign"
        },
        "subscriber_completed_count": {
          "type": "integer",
          "description": "Number of subscribers who completed the campaign"
        },
        "drip_campaign_nodes": {
          "type": "string",
          "description": "JSON string containing drip campaign node configuration"
        },
        "drip_campaign_tree_blob": {
          "type": "string",
          "description": "JSON string containing drip campaign tree structure"
        }
      }
    }
  }
}