Campaigns
Preview Template
Preview how a template will be rendered with sample data.
POST
Preview how a template will render with sample variable values. Use this to test and validate your templates before starting a campaign.
Appointment reminder:
SMS message:
Request Body
Template Syntax
Templates use Jinja2-style syntax:Available Filters
System Variables
These are always available:Example Request
Request Body
Response
Response
Example with Missing Variables
Request with missingappointment_date:
Request Body
Response
Example Code
cURL
Python
JavaScript
Template Examples
Welcome message:Error Handling
If template has syntax errors:Response (Error)
Best Practices
- Always test templates before starting campaigns
- Use default filters for optional variables
- Keep templates concise - especially for SMS
- Use title_case for names to handle different input formats
- Test with empty variables to ensure fallbacks work
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response