Endpoints
The OSM Templates API is a collection of the following endpoints:- Create OSM Template: Creates a new OSM template with an HTML payload.
- Update OSM Template: Updates an existing OSM template and handles campaign versioning.
- Search OSM Templates: Retrieves templates based on filters like template type, source, or creator.
FAQs
Which OSM template types are supported?
Which OSM template types are supported?
The API currently supports the creation and management of BANNER, POP_UP, and NUDGE template types. All payloads must be in HTML format.
Can I use API-created templates in the Drag and Drop Editor?
Can I use API-created templates in the Drag and Drop Editor?
No. Templates uploaded via the API are only compatible with the Custom HTML Editor in the MoEngage Dashboard.
How do I handle updates for live campaigns?
How do I handle updates for live campaigns?
When updating a template, you can set the
update_campaigns flag.- True: Automatically updates all running campaigns to the new template version.
- False: Creates a new version without affecting existing campaigns.