
For SMS sent in India, the templates need to be registered on any of the DLT
platforms. You should add the registered DLT Template ID in the SMS template.
Dynamic Content
To pass dynamic or custom data in the SMS template like invoice number, user name, tracking link etc., you should wrap it within handlebars . Raven uses Handlebars.js to parse the template and all handlebar operations are supported. Following Handlebars expressions are supported within templates:- Nested objects
- #if, #each, #with
Additional fields
Apart from the SMS text, you can also send additional fields in the template. This is useful if you want to override the “From”/“Sender ID”/“Header” that you configured while setting up the integration.Field | Description |
---|---|
sender | Name of the message sender (same as “From”/“Sender ID”/“Header”) |
This is how you can pass it in the Send Event API. Check the API doc for the complete request.