Search for Push Templates
This API searches the push templates created in your MoEngage account.
- 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.
Rate Limit
The rate limit is 100 RPM (request per minute).Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
Body
A JSON object containing filters for the search. You can send empty filters to fetch all the push templates. Searches for push templates based on a variety of filter criteria. Note:
- You can send empty filters to fetch all the push templates.
- You can send only template_ids if you want specific older versions of the push template. In other cases, you will receive the latest version of the template.
The page number of the results you wish to fetch.
The number of templates to return per page, with a maximum value of 15.
x <= 15This 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 list of platforms. Allowed values: ANDROID, IOS. When specified, the templates whose platform matches that specified in this list will be returned.
ANDROID, IOS 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.
API, MOENGAGE This field indicates the template style. Allowed values: BASIC, STYLIZED. When specified, the templates whose template style matches that specified in this list will be returned.
BASIC, STYLIZED 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.
CUSTOM, PRE_BUILT 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: ["[email protected]", "[email protected]"]
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: ["[email protected]", "[email protected]"]
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 that must be fetched. When this value is specified, the template that matches the id specified in this field will be returned. You can send only template_ids if you want specific older versions of the push template. In other cases, you will receive the latest version of the template. Example: "template_ids":[{"external_template_id": "e1c95cb8-4f15-4f22-ae73-e9f47c9925c8", "version": 1}]
Response
This response is returned when the request is processed successfully.
This field contains the list of push templates that satisfy the search criteria.