# Configure Autoresponder Email Delivery

Configures an inactive email follow-up's sender, reply-to, CC/BCC, signature, link tracking, report-spam header and receiver email; the sender domain follows the address. The first-send transactional option omits the unsubscribe link, so set it only when asked. Omitted values stay. SMS follow-ups use configure-autoresponder-sms-delivery. Sends nothing.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "autoresponderId": {
      "type": "integer",
      "description": "ID of an email follow-up",
      "minimum": 1
    },
    "senderName": {
      "type": [
        "null",
        "string"
      ],
      "description": "Name the recipients see as the sender; empty string means the signature's dispatch profile decides; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "senderEmail": {
      "type": [
        "null",
        "string"
      ],
      "description": "Sender address, one of the account's confirmed sender addresses; the account's own address is stored as \"always the current account address\"; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "replyEmail": {
      "type": [
        "null",
        "string"
      ],
      "description": "Reply-to address; empty string removes it; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "ccEmail": {
      "type": [
        "null",
        "string"
      ],
      "description": "CC address; empty string removes it; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "bccEmail": {
      "type": [
        "null",
        "string"
      ],
      "description": "BCC address; empty string removes it; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "signatureId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "ID of a signature of the account, from search-signatures, or 0 for \"automatic selection by tagging\"; omit to keep",
      "default": null,
      "minimum": 0
    },
    "linkTracking": {
      "type": [
        "null",
        "boolean"
      ],
      "description": "Whether KlickTipp rewrites links so clicks are counted; false needs a verified sending domain with its own mail server (DKIM-only is not enough), without one tracking stays on; omit to keep",
      "default": null
    },
    "sendFirstAsTransactional": {
      "type": [
        "null",
        "boolean"
      ],
      "description": "Whether the first dispatch to a contact goes out as a transactional email -- WITHOUT an unsubscribe link; only when the user asked for it; omit to keep",
      "default": null
    },
    "reportSpamHeader": {
      "type": [
        "null",
        "boolean"
      ],
      "description": "Whether the Gmail report-spam header is added (\"Activate preview for GMail\"); omit to keep",
      "default": null
    },
    "receiverEmail": {
      "type": [
        "null",
        "string"
      ],
      "description": "Send every copy of this follow-up to this address instead of the contact, one of the account's confirmed reply addresses as in the app; empty string switches it off; needs the \"use receiver email\" permission; omit to keep",
      "default": null,
      "maxLength": 250
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "autoresponderId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "autoresponderId",
    "kind",
    "name",
    "notes",
    "labels",
    "status",
    "isSplitTest",
    "email",
    "sms",
    "trigger",
    "audience",
    "missingForActivation",
    "editUrl",
    "scheduleUrl",
    "statisticsUrl"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "autoresponderId": {
      "type": "integer"
    },
    "kind": {
      "type": "string",
      "enum": [
        "email",
        "sms",
        "birthday-email",
        "birthday-sms"
      ]
    },
    "name": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "paused",
        "scheduled",
        "active"
      ]
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isSplitTest": {
      "type": "boolean"
    },
    "email": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "emailId",
        "subject",
        "preheader",
        "reportSpamHeader",
        "editorUrl",
        "contentUrl"
      ],
      "properties": {
        "emailId": {
          "type": "integer"
        },
        "subject": {
          "type": "string"
        },
        "preheader": {
          "type": [
            "string",
            "null"
          ]
        },
        "reportSpamHeader": {
          "type": "boolean"
        },
        "editorUrl": {
          "type": "string"
        },
        "contentUrl": {
          "type": "string"
        }
      }
    },
    "sms": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "smsId",
        "text",
        "senderName",
        "provider",
        "linkTracking",
        "contentUrl"
      ],
      "properties": {
        "smsId": {
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "senderName": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "linkTracking": {
          "type": "boolean"
        },
        "contentUrl": {
          "type": "string"
        }
      }
    },
    "trigger": {
      "type": "object",
      "required": [
        "delayUnit",
        "delayValue",
        "dateFieldId",
        "weekdays",
        "sendAtTime",
        "birthdayFieldId",
        "birthdayTime",
        "repeat",
        "repeatTagIds"
      ],
      "properties": {
        "delayUnit": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "immediately",
            "seconds",
            "minutes",
            "hours",
            "days",
            "weeks",
            "months",
            "custom-field",
            null
          ]
        },
        "delayValue": {
          "type": [
            "integer",
            "null"
          ]
        },
        "dateFieldId": {
          "type": [
            "string",
            "null"
          ]
        },
        "weekdays": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer"
          }
        },
        "sendAtTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "birthdayFieldId": {
          "type": [
            "string",
            "null"
          ]
        },
        "birthdayTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "repeat": {
          "type": "boolean"
        },
        "repeatTagIds": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      }
    },
    "audience": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "all_contacts",
            "saved_audience",
            "tag_conditions"
          ]
        }
      },
      "additionalProperties": true
    },
    "missingForActivation": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "editUrl": {
      "type": "string"
    },
    "scheduleUrl": {
      "type": "string"
    },
    "statisticsUrl": {
      "type": "string"
    }
  }
}
```

