Output schema from tools/list
{
"$defs": {
"IncrementalEmailingCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"utm_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the campaign is using UTM parameters.",
"title": "Utm Enabled"
},
"utm": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"description": "The UTM parameters of the campaign.",
"title": "Utm"
},
"subject_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The preview of the subject of the campaign. It may contain placeholders for personalization.",
"title": "Subject Preview"
},
"subject_has_personalization": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the subject of the campaign has personalization.",
"title": "Subject Has Personalization"
},
"sender_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address that was used to send the campaign.",
"title": "Sender Email Address"
},
"sender_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The name displayed with the sender email address.",
"title": "Sender Name"
},
"sender_reply_to_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address for replies.",
"title": "Sender Reply To Email Address"
},
"campaign_type": {
"const": "incremental-emailing",
"title": "Campaign Type",
"type": "string"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"name",
"utm_enabled",
"utm",
"subject_preview",
"subject_has_personalization",
"sender_email_address",
"sender_name",
"sender_reply_to_email_address",
"campaign_type",
"state"
],
"title": "IncrementalEmailingCampaign",
"type": "object"
},
"IncrementalSMSCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"utm_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the campaign is using UTM parameters.",
"title": "Utm Enabled"
},
"utm": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"description": "The UTM parameters of the campaign.",
"title": "Utm"
},
"sender_type": {
"anyOf": [
{
"enum": [
"text",
"system"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The type of the sender.",
"title": "Sender Type"
},
"sender_value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The value of the sender.",
"title": "Sender Value"
},
"campaign_type": {
"const": "incremental-sms",
"title": "Campaign Type",
"type": "string"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"name",
"utm_enabled",
"utm",
"sender_type",
"sender_value",
"campaign_type",
"state"
],
"title": "IncrementalSMSCampaign",
"type": "object"
},
"PopupCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"campaign_type": {
"const": "popup",
"title": "Campaign Type",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"campaign_type",
"name",
"state"
],
"title": "PopupCampaign",
"type": "object"
},
"TargetedEmailingABCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"utm_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the campaign is using UTM parameters.",
"title": "Utm Enabled"
},
"utm": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"description": "The UTM parameters of the campaign.",
"title": "Utm"
},
"subject_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The preview of the subject of the campaign. It may contain placeholders for personalization.",
"title": "Subject Preview"
},
"subject_has_personalization": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the subject of the campaign has personalization.",
"title": "Subject Has Personalization"
},
"sender_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address that was used to send the campaign.",
"title": "Sender Email Address"
},
"sender_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The name displayed with the sender email address.",
"title": "Sender Name"
},
"sender_reply_to_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address for replies.",
"title": "Sender Reply To Email Address"
},
"campaign_type": {
"const": "targeted-emailing-ab",
"title": "Campaign Type",
"type": "string"
},
"scheduled_date": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "The date when the campaign was scheduled to be sent.",
"title": "Scheduled Date"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"name",
"utm_enabled",
"utm",
"subject_preview",
"subject_has_personalization",
"sender_email_address",
"sender_name",
"sender_reply_to_email_address",
"campaign_type",
"scheduled_date",
"state"
],
"title": "TargetedEmailingABCampaign",
"type": "object"
},
"TargetedEmailingCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"utm_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the campaign is using UTM parameters.",
"title": "Utm Enabled"
},
"utm": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"description": "The UTM parameters of the campaign.",
"title": "Utm"
},
"subject_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The preview of the subject of the campaign. It may contain placeholders for personalization.",
"title": "Subject Preview"
},
"subject_has_personalization": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the subject of the campaign has personalization.",
"title": "Subject Has Personalization"
},
"sender_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address that was used to send the campaign.",
"title": "Sender Email Address"
},
"sender_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The name displayed with the sender email address.",
"title": "Sender Name"
},
"sender_reply_to_email_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The email address for replies.",
"title": "Sender Reply To Email Address"
},
"campaign_type": {
"const": "targeted-emailing",
"title": "Campaign Type",
"type": "string"
},
"scheduled_date": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "The date when the campaign was scheduled to be sent.",
"title": "Scheduled Date"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"name",
"utm_enabled",
"utm",
"subject_preview",
"subject_has_personalization",
"sender_email_address",
"sender_name",
"sender_reply_to_email_address",
"campaign_type",
"scheduled_date",
"state"
],
"title": "TargetedEmailingCampaign",
"type": "object"
},
"TargetedSMSCampaign": {
"properties": {
"campaign_id": {
"description": "The identifier of the campaign.",
"title": "Campaign Id",
"type": "string"
},
"created_date": {
"description": "The date when the campaign was created.",
"format": "date-time",
"title": "Created Date",
"type": "string"
},
"name": {
"description": "The name of the campaign.",
"title": "Name",
"type": "string"
},
"utm_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the campaign is using UTM parameters.",
"title": "Utm Enabled"
},
"utm": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"description": "The UTM parameters of the campaign.",
"title": "Utm"
},
"sender_type": {
"anyOf": [
{
"enum": [
"text",
"system"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The type of the sender.",
"title": "Sender Type"
},
"sender_value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The value of the sender.",
"title": "Sender Value"
},
"campaign_type": {
"const": "targeted-sms",
"title": "Campaign Type",
"type": "string"
},
"scheduled_date": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "The date when the campaign was scheduled to be sent.",
"title": "Scheduled Date"
},
"state": {
"description": "The current state of the campaign: for example draft, scheduled, active, paused, archived, deleted, sent, or a transition shown for seconds while a change is applied (scheduling, activating, pausing, archiving, unarchiving, canceling, deleting). unknown is a state this API does not recognize.",
"title": "State",
"type": "string"
}
},
"required": [
"campaign_id",
"created_date",
"name",
"utm_enabled",
"utm",
"sender_type",
"sender_value",
"campaign_type",
"scheduled_date",
"state"
],
"title": "TargetedSMSCampaign",
"type": "object"
}
},
"properties": {
"business_id": {
"title": "Business Id",
"type": "string"
},
"campaigns": {
"items": {
"discriminator": {
"mapping": {
"incremental-emailing": "#/$defs/IncrementalEmailingCampaign",
"incremental-sms": "#/$defs/IncrementalSMSCampaign",
"popup": "#/$defs/PopupCampaign",
"targeted-emailing": "#/$defs/TargetedEmailingCampaign",
"targeted-emailing-ab": "#/$defs/TargetedEmailingABCampaign",
"targeted-sms": "#/$defs/TargetedSMSCampaign"
},
"propertyName": "campaign_type"
},
"oneOf": [
{
"$ref": "#/$defs/TargetedEmailingCampaign"
},
{
"$ref": "#/$defs/TargetedEmailingABCampaign"
},
{
"$ref": "#/$defs/IncrementalEmailingCampaign"
},
{
"$ref": "#/$defs/TargetedSMSCampaign"
},
{
"$ref": "#/$defs/IncrementalSMSCampaign"
},
{
"$ref": "#/$defs/PopupCampaign"
}
]
},
"title": "Campaigns",
"type": "array"
}
},
"required": [
"business_id",
"campaigns"
],
"title": "CampaignListResult",
"type": "object"
}