---
title: "Use dynamic decision model data in the API response for an interactive experience"
slug: "use-dynamic-decision-model-data-in-the-api-response-for-an-interactive-experience"
abstract: "Describes how to include dynamic decision model data in the API response (Sitecore Personalize)."
---
# Use dynamic decision model data in the API response for an interactive experience

If an interactive experience is [configured with a decision model](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-interactive-experiments-in-sitecore-personalize/use-a-decision-model-in-an-interactive-experiment.html "Use a decision model in an interactive experiment"), you must include offers or content from the decision model in the API response. You can use the **Data** tab to copy an attribute or path from the decision model response and paste it in as FreeMarker into the **API** editor. For example, copy `Offer name` and `Offer URL` and paste them into the **API** editor window.

> [!important]
> The **Data** tab displays decision model response data for preview and debugging. This data is not automatically included in the API response. To reference decision model attributes using FreeMarker at runtime, you must first add the decision model output to the API response.

To include dynamic decision model data in the API response:

1. In the API editor, from the **API** tab, click the **Data** tab.
2. To insert dynamic data into HTML, enter a guest's email address or other identifier to search in the **Data Selector** search box. This enables you to access data model attributes and paths.

    > [!tip]
    > If there is a guest whose data you often use when configuring or testing code, just click the **star** icon to bookmark the guest so you no longer have to search for them.

3. Under **Decision Model Response**, click ![Copy icon](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/copy_data.png) next to the attribute or path and click **Copy Path as FreeMarker**.

    ![Copying the decision model response into the API response](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/pers_decmodelresponse.png)

4. Paste into the **API** tab.
5. Click **Save**.
6. Click ![back.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/back.png) to close the API editor.