Get the list of email templates

GET {{baseUrl}}/smtp/templates?templateStatus=false&limit=50&offset=0&sort=desc

Request Params

KeyDatatypeRequiredDescription
templateStatusbooleanFilter on the status of the template. Active = true, inactive = false
limitnumberNumber of documents returned per page
offsetnumberIndex of the first document in the page
sortstringSort the results in the ascending/descending order of record creation. Default order is descending if sort is not passed

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"count":2,"templates":[{"id":5,"name":"ChristomasTimeTemplate","subject":"Merry Christmas","isActive":false,"testSent":false,"sender":{"name":"John","email":"john.smith@example.com","id":23},"replyTo":"replyto@domain.com","toField":"","tag":"Festival","htmlContent":"HTML CONTENT 1","createdAt":"2016-02-24T14:44:24.000Z","modifiedAt":"2016-02-24T15:37:11.000Z"},{"id":12,"name":"SummerSales2017Template","subject":"Enjoy our summer Sales !","isActive":true,"testSent":false,"sender":{"name":"John","email":"john.smith@example.com","id":23},"replyTo":"replyto@domain.com","toField":"","tag":"Summer","htmlContent":"HTML CONTENT 2","createdAt":"2016-02-25T11:53:26.000Z","modifiedAt":"2016-02-25T11:53:26.000Z"}]}