{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/poptin/json-schema/poptin-send-campaign-test-email-request-schema.json",
  "title": "SendCampaignTestEmailRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/poptin-api-openapi.yml#/components/schemas/SendCampaignTestEmailRequest",
  "type": "object",
  "properties": {
    "emails": {
      "type": "array",
      "description": "Recipient email addresses for the test (maximum 5 total).",
      "items": {
        "type": "string",
        "format": "email"
      },
      "minItems": 1,
      "maxItems": 5,
      "uniqueItems": true
    },
    "contact_uid": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional contact UID used to personalize the test emails. This does not count as or add a recipient."
    },
    "variant_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Required for A/B campaigns only (regular/HTML variant). Prohibited for regular campaigns.\nNumeric id from show campaign `variants[].id`. Plain-text variants are not supported."
    }
  },
  "required": [
    "emails"
  ]
}