{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transmitly-io/json-schema/transmitly-io-broadcast-schema.json",
  "title": "Broadcast",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transmitly-io-openapi.json#/components/schemas/Broadcast",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "audience_id": {
      "type": "string"
    },
    "audience_name": {
      "type": "string"
    },
    "template_id": {
      "type": "string"
    },
    "from_email": {
      "type": "string"
    },
    "from_name": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "scheduled",
        "sending",
        "sent",
        "cancelled",
        "failed"
      ]
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "recipients": {
      "type": "integer"
    },
    "queued": {
      "type": "integer"
    },
    "skipped": {
      "type": "integer"
    },
    "failed": {
      "type": "integer"
    },
    "track_opens": {
      "type": "boolean"
    },
    "track_clicks": {
      "type": "boolean"
    },
    "variant_b_subject": {
      "type": "string"
    },
    "variant_b_html": {
      "type": "string"
    },
    "variant_b_text": {
      "type": "string"
    },
    "variant_split_percent": {
      "type": "integer",
      "minimum": 1,
      "maximum": 99
    },
    "winner_enabled": {
      "type": "boolean"
    },
    "winner_metric": {
      "type": "string",
      "enum": [
        "open",
        "click"
      ]
    },
    "winner_wait_minutes": {
      "type": "integer"
    },
    "winner_test_percent": {
      "type": "integer"
    },
    "winner_variant": {
      "type": "string",
      "enum": [
        "",
        "a",
        "b"
      ]
    },
    "winner_selected_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "segment_id": {
      "type": "string"
    },
    "segment_name": {
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "variant_c_subject": {
      "type": "string"
    },
    "variant_c_html": {
      "type": "string"
    },
    "variant_c_text": {
      "type": "string"
    },
    "variant_c_split_percent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99
    },
    "blocks": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}