Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore Personalize
Managing accounts and system settings
Identifying guests
Introduction to experiments
Introduction to experiences
Decisioning
View dashboards
Developer Center
Connecting to an external system
Using client-side JavaScript
Using server-side JavaScript
AI in Personalize
Glossary
  • Sitecore Personalize
  • Introduction to experiences
  • Introduction to web experiences in Sitecore Personalize
  • Compose the API request for a web experience
  • Use FreeMarker snippets in an API request for a web experience

Use FreeMarker snippets in an API request for a web experience

Sitecore Personalize provides you with FreeMarker snippets that you can copy and paste into the API request. For example, if you selected a decision model to return content, you must include the offers or content in the API request using FreeMarker.

To copy and paste FreeMarker snippets in the API requeste:

  1. In the code editor, click the API tab.

  2. On the Snippets tab, browse the available FreeMarker snippets that you can copy and paste into the API tab.

    Use FreeMarker snippets to copy into the API tab.
  3. Click the Copy link next to the code snippet that you want to copy.

  4. Paste the code snippet into the API tab.

  5. You must then reference this data again by pasting it into the relevant HTML, CSS, or JavaScript editor.

  6. Click Save.

  7. Click to close the code editor.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore