# Get Opt-In Confirmation Email

Reads an opt-in confirmation email’s subject and sender settings, with sendable sender addresses, confirmed CC/BCC options, domains and identity status. An empty stored sender or reply-to follows the account address. Single opt-in processes store this email but do not send it. The body is read by get-opt-in-confirmation-email-content; drag-and-drop block tools do not support it. Change settings with update-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",
    "senderName",
    "senderEmail",
    "replyToEmail",
    "ccEmail",
    "bccEmail",
    "senderDomain",
    "senderEmailOptions",
    "ccBccEmailOptions",
    "senderDomainOptions",
    "senderIdentity",
    "bodyIsEditable",
    "editUrl"
  ],
  "properties": {
    "emailId": {
      "type": "integer"
    },
    "optInProcessId": {
      "type": "integer"
    },
    "subject": {
      "type": "string"
    },
    "senderName": {
      "type": "string"
    },
    "senderEmail": {
      "type": "string"
    },
    "replyToEmail": {
      "type": "string"
    },
    "ccEmail": {
      "type": "string"
    },
    "bccEmail": {
      "type": "string"
    },
    "senderDomain": {
      "type": "string"
    },
    "senderEmailOptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ccBccEmailOptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "senderDomainOptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "senderIdentity": {
      "type": "object",
      "required": [
        "effectiveSenderEmail",
        "customerDomain",
        "normalizedSenderDomain",
        "status",
        "isUsable",
        "senderEmailOptions",
        "senderDomainOptions"
      ],
      "properties": {
        "effectiveSenderEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "customerDomain": {
          "type": [
            "string",
            "null"
          ]
        },
        "normalizedSenderDomain": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ready",
            "address-not-configured",
            "address-not-confirmed",
            "address-not-usable",
            "address-blocked",
            "domain-not-configured",
            "domain-not-verified",
            "domain-not-yet-usable",
            "domain-mismatch",
            null
          ]
        },
        "isUsable": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "senderEmailOptions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "senderDomainOptions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "bodyIsEditable": {
      "type": "boolean"
    },
    "editUrl": {
      "type": "string"
    }
  }
}
```

