The Search OSM Template API can be used to look up the OSM 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.The API request is authenticated through Basic Authentication. This 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:
{"Authorization: "Basic Base64_ENCODED_WORKSPACEID_APIKEY=="}
Follow these steps to obtain the username and password from the MoEngage Dashboard:
Search filters for finding OSM templates. An empty body will fetch all templates. Pagination is mandatory after November 15, 2025.
All fields are optional. An empty request body will fetch all templates.
The index of the page to be returned. Mandatory after Nov 15, 2025.
The number of entries/templates to return per page. Max 15. Mandatory after Nov 15, 2025.
x <= 15The name of the template to search for. Returns templates matching this name.
The unique ID of the template provided by you.
Filter templates by their source.
API, MOENGAGE Filter templates by type (Custom or Pre-built).
CUSTOM, PRE_BUILT Filter templates by the creator's email identifier.
Filter templates by the updater's email identifier.
Sort the templates by multiple fields in ASCENDING or DESCENDING order. Priority follows the array order.
Search for multiple templates using pairs of external_template_id and version.
Search successful. Returns a list of templates.
A list containing the details of the templates found.