# Get Opt-In Confirmation Email Content

Reads an opt-in confirmation email’s subject, HTML and plain-text bodies and content type. Both bodies are returned; the recipient’s mail client chooses which to show. This is rich text, not a drag-and-drop document. Sender settings are read by get-opt-in-confirmation-email.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "optInProcessId": {
      "type": "integer",
      "description": "ID of the opt-in process whose confirmation email is read",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "optInProcessId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "emailId",
    "optInProcessId",
    "subject",
    "contentType",
    "html",
    "plain",
    "validationMessages",
    "stored",
    "editUrl"
  ],
  "properties": {
    "emailId": {
      "type": "integer"
    },
    "optInProcessId": {
      "type": "integer"
    },
    "subject": {
      "type": "string"
    },
    "contentType": {
      "type": "string"
    },
    "html": {
      "type": "string"
    },
    "plain": {
      "type": "string"
    },
    "validationMessages": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type",
          "code",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "stored": {
      "type": "boolean"
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

