{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/achieved-io/json-schema/achieved-io-post-api-v1-communications-request-schema.json",
  "title": "PostApiV1CommunicationsRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/achieved-io-openapi-generated.yml#/components/schemas/PostApiV1CommunicationsRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "\"email\", \"in_app\", \"both\""
    },
    "recipient_ids": {
      "type": "array",
      "description": "Array of investor IDs"
    },
    "subject": {
      "type": "string",
      "description": "Message subject line"
    },
    "body": {
      "type": "string",
      "description": "Message body (HTML or plain text)"
    },
    "template_id": {
      "type": "string",
      "description": "Use a predefined template instead of body"
    }
  },
  "required": [
    "type",
    "recipient_ids",
    "subject",
    "body"
  ]
}