# Preview Personalized Automation Email

Previews a published campaign (automation) or notification email personalized for one existing contact; unpublished edits are not shown (preview-email-editor shows the draft). AI email previews can call the configured AI service and consume credits. Sends nothing. Newsletters use preview-personalized-newsletter, follow-ups preview-personalized-autoresponder-email.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "emailId": {
      "type": "integer",
      "minimum": 1
    },
    "subscriberId": {
      "type": "integer",
      "minimum": 1
    },
    "referenceId": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "emailId",
    "subscriberId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "subject",
    "html",
    "plain",
    "contentType",
    "signatureId",
    "signatureName"
  ],
  "properties": {
    "subject": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "plain": {
      "type": "string"
    },
    "contentType": {
      "type": "integer"
    },
    "signatureId": {
      "type": "integer"
    },
    "signatureName": {
      "type": "string"
    }
  }
}
```

