search_templates
Search and filter MoEngage templates by name, ID, source, or type. Retrieve paginated results with optional HTML content for inspection.
Instructions
Search templates in MoEngage API with advanced filtering and pagination.
Set include_html=False (default) for listing/counting to avoid context overflow. Only use include_html=True when inspecting the actual HTML of a specific template.
Filters:
template_name: Partial match on template name
template_id: Exact match on custom template identifier
external_template_id: Exact match on MoEngage UUID
template_source: ["API"] for programmatic, ["MOENGAGE"] for dashboard-created
template_type: ["CUSTOM"] for user-created, ["PRE_BUILT"] for MoEngage templates
version: Exact version string
created_by / updated_by: Filter by email addresses
Sorting: sort_by ("template_name", "last_modified_date"), sort_order ("ASCENDING", "DESCENDING")
Pagination: page (1-indexed), entries (default 10, max 15). Response includes has_more.
Returns dict with success, templates, total, page, entries, has_more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_name | No | ||
| template_id | No | ||
| external_template_id | No | ||
| page | No | ||
| entries | No | ||
| template_source | No | ||
| template_type | No | ||
| version | No | ||
| created_by | No | ||
| updated_by | No | ||
| sort_by | No | ||
| sort_order | No | ||
| include_html | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||