inbox as a routing channel.
Routing channels control the delivery method for a message. Other channels include email, SMS and push.
In the example below, we call the Send API to send a message to a user’s Inbox with variable interpolation.
Passing data with an Inbox message
If you provide information in the data field, it will be passed with the inbox or push message to the SDK.
Data that is referenced in your content payload or in a template (like {{ villain }} in the example above),
will be interpolated.
Data that is not referenced will still be passed through with the message. This can be
particularly useful for deep linking, opening a particular view in your app from a link or push notification.
Using Courier Elemental Syntax
Inbox SDKs support a subset of Elemental syntax. Elemental is a JSON-based templating format for composing cross-platform notifications.| Element | Web | iOS | Android |
|---|---|---|---|
| Title | |||
| Body | |||
| Text | |||
| Action |
Send Using A Template
You can create a notification template using the Notification Designer. After you create a template (or edit an existing one), add a new channel and select “Inbox”. This will provide you with a blank template that you can use to customize the content that will delivered with that notification. When calling the API, replace thecontent field with a template field that defines either a Template ID or an Event ID.