{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theagentc-io/json-schema/theagentc-io-dispatch-run-request-schema.json",
  "title": "DispatchRunRequest",
  "description": "Request to enqueue a content pipeline run.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theagentc-io-openapi.json#/components/schemas/DispatchRunRequest",
  "properties": {
    "brand_id": {
      "type": "string",
      "title": "Brand Id",
      "description": "Brand UUID"
    },
    "mode": {
      "type": "string",
      "title": "Mode",
      "description": "Content mode: 'mode_1' (customer idea), 'mode_2' (video upload), 'mode_3' (full AI)"
    },
    "content_type": {
      "type": "string",
      "title": "Content Type",
      "description": "Content type: 'text' or 'video'",
      "default": "text"
    },
    "idea": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idea",
      "description": "Customer's content idea (required for mode_1)"
    },
    "video_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Video Url",
      "description": "URL of uploaded video (required for mode_2)"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign Id",
      "description": "Campaign UUID if this run is part of a campaign"
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platforms",
      "description": "Target platforms: ['x', 'youtube', 'pinterest']. Defaults to all connected."
    }
  },
  "type": "object",
  "required": [
    "brand_id",
    "mode"
  ]
}