{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-email-campaign-dto-schema.json",
  "title": "EmailCampaignDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-email-api-openapi.yml#/components/schemas/EmailCampaignDto",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "description": "Campaign identifier. Pass to getEmailCampaign to check progress or cancelEmailCampaign to stop it."
    },
    "status": {
      "type": "string",
      "description": "Progress of the campaign as a whole: `pending` or `running` while it is being handed over, `waiting_timer` while it waits, then `completed`, `failed` or `cancelled`. Sending is asynchronous, so a fresh campaign starts as `pending`. Keep polling until it is `completed`, `failed` or `cancelled`."
    },
    "recipientCount": {
      "type": "number",
      "description": "How many records the campaign was started for."
    },
    "pollUrl": {
      "type": "string",
      "description": "Relative URL to poll for progress."
    }
  },
  "required": [
    "campaignId",
    "status",
    "recipientCount",
    "pollUrl"
  ]
}