REST API

With the REST API, you can use mailing for email templating even if most of your app is not written in TypeScript or JavaScript.

MethodPathDescriptionExample
GET/api/renderrender a template with props to HTMLLink
GET/api/sendMailsend an email with props

MethodPathDescriptionExample
GET/api/previewsreturns the list of previewsLink
GET/api/previews/[previewClass]/[previewFunction]returns the rendered previewLink

MethodPathDescription
GET/api/listsget all lists
POST/api/listscreate a new list
GET/api/lists/[listId]/membersget the members of a list
POST/api/lists/[listId]/membersadd a member to a list
GET/api/lists/[listId]/members/[memberId]get a list member's status
PATCH/api/lists/[listId]/members/[memberId]update a list member's status