REST API
Templates
name required;subject and body (HTML or text) optional on create (default empty strings).
CRUD paths
GET|POST /api/v1/templatesGET|PATCH|DELETE /api/v1/templates/{id}
POST body
{
"name": "Welcome",
"subject": "Hi there",
"body": "<p>Thanks for joining.</p>"
}