---
title: "Use guest data in the API request for a triggered experience"
slug: "use-guest-data-in-the-api-request-for-a-triggered-experience"
abstract: "Describes how to include guest data in the API request for a triggered experience."
---
# Use guest data in the API request for a triggered experience

You can copy attributes or paths from the guest data model and use them in the API request.

To include guest data in the API request:

1. In the API editor, click the **API body** tab.
2. Click the **Data** tab.
3. To insert guest data into the API response, 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.

4. Under **Guest data model**, click the copy icon next to the attribute or path.

    ![ ](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/pers_triggerapi.png)

5. Paste into the **API body** tab.
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 API editor.