{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sambodh-ias-in/json-schema/sambodh-ias-in-email-send-request-schema.json",
  "title": "EmailSendRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sambodh-ias-in-openapi.json#/components/schemas/EmailSendRequest",
  "properties": {
    "subject": {
      "type": "string",
      "title": "Subject"
    },
    "body_markdown": {
      "type": "string",
      "title": "Body Markdown"
    },
    "user_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "User Ids"
    },
    "extra_emails": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Extra Emails",
      "default": []
    },
    "cta_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cta Label"
    },
    "cta_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cta Url"
    },
    "cta_position": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cta Position",
      "default": "below"
    },
    "body_font": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Body Font",
      "default": "inter"
    },
    "segment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Segment"
    }
  },
  "type": "object",
  "required": [
    "subject",
    "body_markdown",
    "user_ids"
  ]
}