---
title: "Use dynamic decision model data in the API request"
slug: "use-dynamic-decision-model-data-in-the-api-request"
abstract: "Describes how to include dynamic decision model data in the API request."
---
# Use dynamic decision model data in the API request

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

To include dynamic decision model data in the API request:

1. In the code editor, click the **API** tab.
2. On the **Data** tab, in the **Data selector** search box, enter a guest's email address or other identifier to search. 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, 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 attributes from the decision model response](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/pers_decmodelresponse.png)

4. Paste into the **API** tab.
5. You must then reference this data again by pasting it into the relevant [HTML](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-web-experiments-in-sitecore-personalize/create-a-web-experiment/use-html-in-a-web-experiment.html "Use HTML in a web experiment"), [CSS](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-web-experiments-in-sitecore-personalize/create-a-web-experiment/use-css-in-a-web-experiment.html "Use CSS in a web experiment"), or [JavaScript](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-web-experiments-in-sitecore-personalize/create-a-web-experiment/use-javascript-in-a-web-experiment.html "Use JavaScript in a web experiment") editor.
6. Click **Save**.
7. Click ![back.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/back.png) to close the code editor.