SendTemplate API sends transactional messages (by merging the parameters and selected template to content) to recipients.
Sending a template requires multiple steps:
- A template is created on Admin Panel or through REST API. There may be some parameters placed on a template. Please see Template Personalization section to understand the personalization of a template. Template public id given on Admin Panel/REST API is used to call this template.
- SendTemplate API is called with parameters to customize. The API merges the template with parameters and creates the final content and relay this content to its final recipients.
- ReportByMessageId function is used to report a message in detail. Please see Advanced Logging/Reporting section to understand which report details can be gathered from this API.
Here is a simple function to call SendTemplate API.