Create the service
Build a message
Attachments
Send a message
Send bulk messages
Send up to 50 messages in a single API call. Each message gets its own tracking ID.Check delivery status
deliveryStatus values: delivered, opened, failed, pending. The openedStatus field defaults to "unopened" if not yet set.
Dynamic templates
Templates use Handlebars syntax ({{variable_name}}). Template content can be a string, Buffer, or readable Stream.
Create a template
List templates
Get a template
Update a template
Passnull for fields you want to leave unchanged:
Delete a template
Send a templated message
Error handling
All service methods return Promises and reject on API errors. Usetry/catch in async functions: