Get the list of email templates
GET {{baseUrl}}/smtp/templates?templateStatus=false&limit=50&offset=0&sort=desc
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
templateStatus | boolean | Filter on the status of the template. Active = true, inactive = false | |
limit | number | Number of documents returned per page | |
offset | number | Index of the first document in the page | |
sort | string | Sort the results in the ascending/descending order of record creation. Default order is descending if sort is not passed |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
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"}]}