# Send Test Marketing Campaign Email

Sends a published campaign (automation) email as a test to one specified address. An address not yet in the account becomes a tagged test contact and may start automations; name the address and disclose that effect before calling. Pass confirm=true only after the user requested this test. Emails without published content are refused; unpublished edits are not sent. Notification emails use send-notification-email-test.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "emailId": {
      "type": "integer",
      "minimum": 1
    },
    "recipientEmail": {
      "type": "string",
      "minLength": 3,
      "maxLength": 250
    },
    "confirm": {
      "type": "boolean",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "emailId",
    "recipientEmail"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "emailId",
    "recipientEmail",
    "result",
    "message"
  ],
  "properties": {
    "emailId": {
      "type": "integer"
    },
    "recipientEmail": {
      "type": "string"
    },
    "result": {
      "type": "object",
      "required": [
        "messages"
      ],
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "message",
              "type"
            ],
            "properties": {
              "message": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "message": {
      "type": "string"
    }
  }
}
```

