Create subscription form
create_subscription_formCreates a new inactive inviomail newsletter subscription form. Double opt-in is the default. First name is optional by default; set firstNameRequired to true to make it mandatory. doiEmail.senderIdentityId optionally overrides the central DOI sender only with doiEmail.mode custom; null or omission inherits. Set mode custom to use an individual email, optionally copied from the central template. Review the form, then activate/publish it with update_subscription_form(isActive: true) as part of the requested task without asking for additional user confirmation; its public URL accepts subscriptions only while active. idempotencyKey is required so retries do not create duplicates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"slug": "<slug>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_subscription_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | Stable lowercase public URL slug | |
| doiEmail | No | Form-specific DOI confirmation email and optional sender override. Use double-brace camelCase placeholders ({{firstName}}, {{email}}, {{accountName}}; body also {{confirmUrl}} and {{confirmLink:Your link text}}). Old square-bracket placeholders are rejected. Sender precedence is active form override, central DOI sender, tenant default. mode tenant_default disables the text and sender overrides while retaining the saved draft; single opt-in sends no DOI email. Changes apply to the next initial send, resend, and reminder, including pending requests. Commerce DOI uses the central DOI sender without form overrides. | |
| headline | No | ||
| optInMode | No | Opt-in behavior. Double opt-in is recommended. Single opt-in additionally requires platform-admin approval for this tenant (request via support@inviomail.de), a visible consent checkbox and privacy policy URL. Without approval, existing single-opt-in forms cannot accept submissions. Commerce receivers and direct contact management are exempt. | |
| defaultTags | No | Complete replacement list of tags assigned by future form submissions | |
| description | No | ||
| submitLabel | No | ||
| contentAlign | No | ||
| showHeadline | No | ||
| idempotencyKey | Yes | ||
| buttonTextColor | No | ||
| showDescription | No | ||
| outerBorderWidth | No | ||
| firstNameRequired | No | Require a non-blank first name for this form, including form webhook and API submissions. Defaults to false (optional first name) on creation; omission on update retains the current setting. After changing it, replace previously embedded HTML snippets to update their field display. | |
| privacyConsentUrl | No | Privacy policy URL, or null to clear it | |
| buttonBorderRadius | No | ||
| pendingRedirectUrl | No | Form-specific pending-page URL override, or null to inherit the tenant default | |
| showPrivacyConsent | No | ||
| cardBackgroundColor | No | ||
| privacyConsentLabel | No | Consent checkbox label; null restores the inviomail default | |
| confirmedRedirectUrl | No | Form-specific confirmation-page URL override, or null to inherit the tenant default | |
| outerBackgroundColor | No | ||
| buttonBackgroundColor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | Yes | ||
| requestId | Yes | ||
| idempotentReplay | Yes |