{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-create-campaign-request-schema.json",
  "title": "CreateCampaignRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-campaigns-api-openapi.yml#/components/schemas/CreateCampaignRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
    },
    "phone_numbers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Phone Numbers"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "channel": {
      "type": "string",
      "pattern": "^(twilio|telnyx)$",
      "title": "Channel",
      "default": "telnyx"
    },
    "greeting": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Greeting"
    },
    "instructions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instructions"
    },
    "max_concurrent": {
      "type": "integer",
      "title": "Max Concurrent",
      "default": 2
    },
    "max_attempts": {
      "type": "integer",
      "title": "Max Attempts",
      "default": 3
    },
    "retry_delay_minutes": {
      "type": "integer",
      "title": "Retry Delay Minutes",
      "default": 30
    },
    "window_start_hour": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Start Hour"
    },
    "window_end_hour": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window End Hour"
    },
    "window_tz": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Tz"
    }
  },
  "type": "object",
  "required": [
    "name",
    "phone_numbers"
  ]
}