●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.
| Method | Path | Description | Example |
|---|---|---|---|
| GET | /api/render | render a template with props to HTML | Link |
| GET | /api/sendMail | send an email with props |
| Method | Path | Description | Example |
|---|---|---|---|
| GET | /api/previews | returns the list of previews | Link |
| GET | /api/previews/[previewClass]/[previewFunction] | returns the rendered preview | Link |
| Method | Path | Description |
|---|---|---|
| GET | /api/lists | get all lists |
| POST | /api/lists | create a new list |
| GET | /api/lists/[listId]/members | get the members of a list |
| POST | /api/lists/[listId]/members | add 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 |