create_topic
Create a preference topic to allow contacts to opt in or out independently of global subscription, enabling targeted campaigns and public preference management.
Instructions
Create a preference topic. Contacts can opt in/out of it independently of their global subscription; campaigns can target it. defaultSubscription is what a contact WITHOUT an explicit choice counts as.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable topic name, e.g. "Product updates". | |
| slug | No | Optional stable handle (lowercase a-z/0-9/-). Derived from the name when omitted. | |
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| visible | No | Show on the public /preferences page (default true; hidden topics stay targetable). | |
| description | No | Shown on the public preferences page. | |
| defaultSubscription | No | Default effective state for contacts with no explicit choice (default opt_in). |