# Send Opt-In Confirmation Email Test

Sends an opt-in confirmation email test to one named address. A new address becomes a tagged test contact, potentially starting automations; tell the user before sending. The test confirmation link confirms nobody, and the process’s subscribers are not recipients.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "optInProcessId": {
      "type": "integer",
      "description": "ID of the opt-in process whose confirmation email is sent",
      "minimum": 1
    },
    "recipientEmail": {
      "type": "string",
      "description": "Address the test goes to; becomes a contact of the account if it is not one yet",
      "minLength": 3,
      "maxLength": 250
    },
    "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",
    "recipientEmail"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "optInProcessId",
    "emailId",
    "subject",
    "recipientEmail",
    "messages",
    "warnings"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "optInProcessId": {
      "type": "integer"
    },
    "emailId": {
      "type": "integer"
    },
    "subject": {
      "type": "string"
    },
    "recipientEmail": {
      "type": "string"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

