{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-message-ten-dlc-campaign-schema.json",
  "title": "MessageTenDlcCampaign",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-10-dlc-api-openapi.yml#/components/schemas/MessageTenDlcCampaign",
  "type": "object",
  "properties": {
    "campaign_usage": {
      "type": "object",
      "properties": {
        "customerCare": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Customer Care or Conversational"
        },
        "accountNotification": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Account Notification"
        },
        "marketing": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Marketing"
        },
        "twoFactorAuth": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "2FA (pin codes sent via SMS)"
        },
        "deliveryNotification": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Delivery Notification"
        },
        "higherEducation": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Higher Education"
        },
        "campaignDescription": {
          "type": "string",
          "minLength": 40,
          "description": "Capmaign description"
        },
        "campaignName": {
          "type": "string",
          "minLength": 1,
          "description": "Capmaign name"
        }
      },
      "required": [
        "campaignDescription",
        "campaignName"
      ],
      "description": "Capmaign usage"
    },
    "campaign_message": {
      "type": "object",
      "properties": {
        "optInKeywords": {
          "type": "string",
          "minLength": 1,
          "description": "Opt-in keywords"
        },
        "optInMessage": {
          "type": "string",
          "minLength": 20,
          "maxLength": 320,
          "description": "Opt-in message"
        },
        "optOutKeywords": {
          "type": "string",
          "minLength": 1,
          "description": "Opt-out keywords"
        },
        "optOutMessage": {
          "type": "string",
          "minLength": 20,
          "maxLength": 320,
          "description": "Opt-out message"
        },
        "helpKeywords": {
          "type": "string",
          "minLength": 1,
          "description": "Help keywords"
        },
        "helpMessage": {
          "type": "string",
          "minLength": 20,
          "maxLength": 320,
          "description": "Help message"
        }
      },
      "required": [
        "optInKeywords",
        "optInMessage",
        "optOutKeywords",
        "optOutMessage",
        "helpKeywords",
        "helpMessage"
      ],
      "description": "Campaign messages"
    },
    "campaign_sms_content": {
      "type": "object",
      "properties": {
        "messageOne": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1024,
          "description": "Sample message 1"
        },
        "messageTwo": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1024,
          "description": "Sample message 2"
        },
        "messageThree": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1024,
          "description": "Sample message 3"
        },
        "messageFlow": {
          "type": "string",
          "minLength": 40,
          "maxLength": 1024,
          "description": "Message flow"
        }
      },
      "required": [
        "messageOne",
        "messageTwo",
        "messageThree",
        "messageFlow"
      ],
      "description": "SMS Content"
    },
    "campaign_contact": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "Name"
        },
        "email": {
          "type": "string",
          "minLength": 1,
          "description": "Email"
        }
      },
      "required": [
        "name",
        "email"
      ],
      "description": "Company information"
    },
    "brandId": {
      "type": "integer",
      "description": "ID of brand associated with the campaign"
    },
    "extension_id": {
      "type": "integer",
      "description": "ID of extension associated with the campaign"
    }
  },
  "required": [
    "campaign_usage",
    "campaign_message",
    "campaign_sms_content",
    "campaign_contact",
    "brandId",
    "extension_id"
  ]
}