{
  "$id": "https://intentschema.org/intents/communication/email/message/forward/v1.json",
  "fqdn": "org.intentschema.communication.email.message.forward.v1",
  "title": "Forward email message",
  "description": "Forward an existing email to additional recipients. Carries high DLP risk: profile policies often gate or block external forwards.",
  "payload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
      "target",
      "object"
    ],
    "properties": {
      "target": {
        "$ref": "https://intentschema.org/common/target/v1.json"
      },
      "object": {
        "type": "object",
        "required": [
          "to"
        ],
        "properties": {
          "to": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "description": "RFC 5321 mailbox. Plain address (jane@example.com) or with display name (\"Jane Doe\" <jane@example.com>)."
            },
            "minItems": 1
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "description": "RFC 5321 mailbox. Plain address (jane@example.com) or with display name (\"Jane Doe\" <jane@example.com>)."
            }
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "description": "RFC 5321 mailbox. Plain address (jane@example.com) or with display name (\"Jane Doe\" <jane@example.com>)."
            }
          },
          "comment": {
            "type": "string",
            "description": "Optional note prepended to the forwarded body."
          }
        }
      },
      "idempotency_key": {
        "type": "string"
      }
    }
  },
  "result": {
    "type": "object",
    "required": [
      "external_id",
      "created_at"
    ],
    "properties": {
      "external_id": {
        "type": "string",
        "description": "Provider-assigned id."
      },
      "created_at": {
        "type": "string",
        "format": "date-time"
      },
      "thread_id": {
        "type": "string"
      }
    }
  },
  "examples": [
    {
      "name": "forward to one",
      "value": {
        "target": {
          "system": "gmail",
          "external_id": "msg_abc123"
        },
        "object": {
          "to": [
            "alice@example.com"
          ],
          "comment": "FYI"
        }
      }
    }
  ]
}
