Elemental
Courier Elemental
Courier Elemental is a JSON-based templating format for defining notification content across channels. It supports localization, channel-specific customization, and dynamic logic using structured elements.
With Courier Elemental you can customize the look, language, and structure of your notification based on locale, channel, and other more advanced custom logic.
Construct an Elemental Template
All Courier Elemental templates have the following top level structure:
Fields
Field | Type | Required | Description |
---|---|---|---|
version | string | required | |
elements | CourierElement | required | Array of Courier Elements |
Usage
Courier Elemental can be used in place of a standard template in a /send
call. To do so,
pass the elemental document as the content
property of the message object: