---
title: [Bonus] Streaming Events via API
slug: vodafone-hands-on-lab/bonus-streaming-events-via-api
docTags: 
createdAt: 2024-01-12T15:07:59.316Z
---

In this exercise we will use a streaming connection to ingest XDM-formatted JSON records in real-time to the Adobe Experience Platform.&#x20;

We will use [Insomnia ](https://insomnia.rest/)to send these events to an HTTP Streaming endpoint.&#x20;

- Go to the menu Connections > Sources > Catalog
- Select My sources
- Go to Streaming source and expand the menu

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/VHs-H2W_r3gSXKcgcMMcs_image.png" size="34" width="594" height="871" position="center" showCaption="false"}

- Click on the menu *View dataflow*

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/a3wcYRnoO_dOZX--MHFGN_image.png)

- Click on the dataflow name
- On the right panel, get a cURL example by clicking on the command *Copy schema payload&#x20;*



::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/lNAsTkpyIh0LVy2BauUpp_image.png" size="38" width="223" height="546" position="center" showCaption="false"}

- Then, open [Insomnia ](https://insomnia.rest/) and add a new request by pasting the cURL request

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/QHqySMbUTHNIFm9dpbLMt_image.png)

- This is an example of an XDM payload ; replace the body by the  following JSON

```javascript
{
            "eventType":"event_name_test",
            "_id":"EC0dYLr4bGnO",
            "timestamp":"2024-11-25T10:44:59.971Z",
            "identityMap":{
               "email":[
                  {
                     "id":"bouessay+20241014@adobetest.com",
                     "primary":true
                  }
               ],
               "phone":[
                  {
                     "id":"0102031014"
                  }
               ]
            },
            "_demopotemea":{
               "identification":{
                  "core":{
                     "email":"bouessay+20241014@adobetest.com",
                     "phoneNumber":"0102031014"
                  }
               },
               "interactionDetails":{
                  "core":{
                     "channel":"cx"
                  }
               }
            }
         }
      }
}
```

- To get a synchronous validation, go to the Query tab and add the parameter syncValidation = true&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/l2YSulMYjmHaS_-TGsu8H_image.png)

- Click on the *Send* button to get a 200 response like that:

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/1OgaeUB3R292SyBnXrmSX_image.png)

- Wait a few seconds&#x20;
- Search for the Profile and go to the Events tab

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/9Gk24E2llOi_RlH0YySYq_image.png)

:::hint{type="success"}
This is one way to ingest Experience Events to Adobe Experience Platform via a **Streaming API**!
:::

