create_notification
Create a V2 notification template. name is required. Content may be provided inline or set separately afterwards. A newly created template is a draft and cannot be sent until it is published; publishing is a separate operation (or pass state: 'PUBLISHED' on create). Link a routing strategy via notification.routing.strategy_id to control which channels are used. Example: { notification: { name: 'welcome-email', tags: [], brand: null, subscription: null, routing: { strategy_id: 'rs_01abc' }, content: { version: '2022-01-01', elements: [] } } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Template state after creation (defaults to DRAFT) | |
| notification | Yes | Notification template payload |