You can create notification templates using the 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.

INFO

Note: pinning is not available in the mobile (iOS and Android) SDKs.

When calling the API, simply replace the content field with a template field that defines either a Template ID or an Event ID.

{
	"message": {
		"to": {
			"user_id": "<USER_ID>"
		},
		"template": "<TEMPLATE_ID or EVENT_ID>",
		"data": {
			"villain": "Darth Vader"
		}
		"routing": {
			"method": "single",
			"channels": ["inbox"]
		}
	}
}

Data Mapping

Information in data will be passed through, but requires “data mapping” inside of the template’s channel settings to pass through to the SDK. You can toggle data mapping on in the Inbox channel settings.

Data mapping enabled