List email templates
Purpose
You can use this API to list the required number of email templates in your ZeptoMail account.
Request URL
Method : GET
https://api.zeptomail.com/v1.1/mailagents/{mailagent-alias}/templates?offset=*&limit=*
*- Add the desired values.
OAuth scope
Any one of the following scopes can be used to access this API
scope=Zeptomail.MailTemplates.All
or
scope=Zeptomail.MailTemplates.READ
ALL - This will give the basic CRUD access too all the email templates APIs.
The steps to generate and use OAuth token can be found here.
Path parameters
Parameter | Type | Description |
mailagent-alias | String | Unique alias value given to the Mail Agent. It is available in the Setup info section of your Mail Agent. |
offset | Int | Positional value of the template starting from which the set of templates have to be listed. Offset value should be the previous positional value of the desired template. Example : If you wish to retrieve the 9th template, offset should be 8. |
limit | Int | Denotes the number of templates that need to listed. |
Sample request
Copied
Sample response
Copied