Landing Page Templates

Landing Page Template Endpoint Reference

Landing Page Templates are a parent resource and dependency for individual Marketo landing pages.  Landing pages derive the skeleton of their content from the parent template.

Landing Page Template Types

Marketo has two types of Landing Page Templates, free form and guided.  Free form landing page templates provide a loosely structured editing experience for pages derived from them.  Guided templates provide a heavily structured experience, where element types and locations can be restricted at the template level.  For more information on the differences, see this document.

Query

Landing Page Templates support the standard query types for assets of by id, by name, and browsing.  These endpoints return metadata for the templates.  Retrieving the HTML content of templates must be done on a per-template basis via its id.

Create and Update

Templates are created as empty assets with associated metadata.  When creating a template, a name, and folder must be included, along with an optional description, templateType and enableMunchkin parameter.  templateType may be either freeform or guided and defaults to freeForm.  For differences between the types, see the Guided vs. Free Form section. enableMunchkin defaults to false, and when enabled will prevent Munchkin tracking from being performed on any child landing pages of the template.

Content for the template must be populated separately via the Update Landing Page Template Content endpoint.

Update Metadata

Metadata for landing page templates can be updated via the Update Landing Page Template Metadata endpoint.  Name, description and the enableMunchkin setting may be updated this way.

Update Content

Content in Landing Page Templates is made as a destructive update to the entirety of the HTML content.  The content must be passed as multipart/form-data, with the only parameter being named content.

Approval

Landing Page Templates follow the standard draft-approved model, where there can be a draft version and/or an approved version.  Whenever updates are applied to a template, they are always applied to the draft version first, and will only be seen live when the template has been approved.

For a template to be approved it must conform to the rules for its type, either guided of free form.  For more information on the requirements for creating and approving templates of their respective types, see their respective creation documents:

Delete

To delete a template, it must be out of use and unapproved, meaning that no child landing page may reference it.  Landing Page Templates with embedded social buttons may not be deleted with this API.