Search Email Template
The Search Email Template API can be used to look up the email templates created in your MoEngage account.
Note
We are introducing mandatory pagination, effective November 15, 2025, all calls to this API must include the following two parameters:
page: The page number of the results you wish to fetch.entries: The number of templates to return per page, with a maximum value of 15.
Please update all integrations to include these parameters. API requests submitted without them after the effective date will result in an error and fail to execute.
Rate Limit
The rate limit is 100 RPM.Note
- You can send empty filters to fetch all the email templates.
- You can send only
template_idsif you want specific older versions of the email template. In other cases, you will receive the latest version of the template. - By default, the
is_default_template_of_groupflag is set to “true” for the default (parent) template and “false” for child templates.
Authorizations
The API request will be authenticated through Basic Authentication. Basic Authentication sends a Base64-encoded string containing your username and password with every API request. It encodes a 'username:password' string in Base64 and appends the encoded string with 'Basic '. This string is included in the authorization header as shown below:
{"Authorization: Basic Base64_ENCODED_WORKSPACEID_APIKEY=="}
The username and password details can be obtained from the MoEngage Dashboard. If you're using the API for the first time, follow these steps:
- Navigate to Settings -> Account -> APIs.
- Copy the following details:
- Username: Under Workspace ID (earlier app id), click the copy icon to copy the username.
- Password: In the API keys section, click the copy icon in the Data tile to copy the API key.
- Use these details to authenticate the API requests.
Headers
Set the Content-Type header to application/json.
This authentication parameter, used for access control, must be passed along with the request. To generate the authentication header, refer to Authentication.
Body
This field contains the index of the pages to be returned in the search result.
This field contains the number of entries per page in the search result.
This field indicates the name of the template. When this value is specified, the template that matches the name specified in this field will be returned.
This field indicates the template source that created the template. For example ["API", "MOENGAGE"]. When specified, the templates whose source matches that specified in this list will be returned.
This field indicates the template version. When specified, the template whose template version matches that specified in this field will be returned.
This field indicates the template id. When specified, the template whose template id matches that specified in this field will be returned.
This field indicates whether the template is a custom one or a pre-built one. Allowed values: CUSTOM, PRE_BUILT. When specified, the templates whose template type matches that specified in this list will be returned.
This field indicates the user who created the template. When specified, the templates for which the created_by user information matches that specified in this list will be returned. Example: ["user1@moengage.com", "user2@moengage.com"]
This field indicates the user who updated the template. When specified, the templates for which the updated_by user information matches that specified in this list will be returned. Example: ["user1@moengage.com", "user2@moengage.com"]
This field indicates the sorting parameters for the search result and the sort order. Example: "sort_params":[{"template_name": "ASCENDING","last_modified_date": "ASCENDING","last_modified_by": "ASCENDING"}]
This field indicates the list of the template ids and their versions that must be fetched. When this value is specified, the template that matches the id and version specified in this field will be returned.
This field indicates the group ID of the parent template. Pass the Group ID of the parent (default) template of the group to fetch all templates associated with that group. The "external_template_id" generated for the parent template acts as its group ID.
If the value is "true", this API fetches only the default template data, including additional fields such as unique locale count, unique variations, total templates in the group, and all individual templates that are not part of any group. If the value is "false", this API will fetch all individual templates and their template data.
If the value is "true", this API fetches total templates of the same request to support pagination on the UI.
Response
This response is returned when the request is processed successfully.