Interact endpoint (interactive collection)
The interact endpoint sends a single event to a datastream. When sending an event to this endpoint, a response is returned that can contain content from Edge Network services. These types of interactions are valuable for both collecting data and personalizing content.
This endpoint does not support batch events. If you need to queue events or send multiple events simultaneously, use the collect endpoint instead.
This endpoint supports both authenticated and non-authenticated events. The payloads for each endpoint use an identical format. Make sure that you use the correct endpoint for your organization's use case.
- Authenticated:
POST https://server.adobedc.net/ee/v2/interact?datastreamId={Datastream ID} - Non-authenticated:
POST https://edge.adobedc.net/ee/v2/interact?datastreamId={Datastream ID}
data-slots=heading, code
data-repeat=3
data-languages=CURL,CURL,JSON
Non-authenticated request
curl -X POST "https://edge.adobedc.net/ee/v2/interact?datastreamId={DATASTREAM_ID}"
-H "Content-Type: application/json"
-d '{
"event": {
"xdm": {
"identityMap": {
"Email_LC_SHA256": [
{
"id": "0c7e6[...]e8a3b",
"primary": true
}
]
},
"eventType": "web.webpagedetails.pageViews",
"web": {
"webPageDetails": {
"URL": "https://example.com/",
"name": "home-demo-Home Page"
}
},
"timestamp": "YYYY-08-09T14:09:20.859Z"
},
"data": {
"prop1": "custom value"
}
}
}'
Authenticated request
curl -X POST "https://server.adobedc.net/ee/v2/interact?datastreamId={DATASTREAM_ID}"
-H "Authorization: Bearer {TOKEN}"
-H "x-gw-ims-org-id: {ORG_ID}"
-H "x-api-key: {API_KEY}"
-H "Content-Type: application/json"
-d '{
"event": {
"xdm": {
"identityMap": {
"Email_LC_SHA256": [
{
"id": "0c7e6[...]e8a3b",
"primary": true
}
]
},
"eventType": "web.webpagedetails.pageViews",
"web": {
"webPageDetails": {
"URL": "https://example.com/",
"name": "home-demo-Home Page"
}
},
"timestamp": "YYYY-08-09T14:09:20.859Z"
},
"data": {
"prop1": "custom value"
}
}
}'
Response
{
"requestId": "60a2f[...]2294d",
"handle": [
{
"payload": [
{
"scope": "Target",
"hint": "35",
"ttlSeconds": 1800
},
{
"scope": "AAM",
"hint": "9",
"ttlSeconds": 1800
},
{
"scope": "EdgeNetwork",
"hint": "or2",
"ttlSeconds": 1800
}
],
"type": "locationHint:result"
},
{
"payload": [
{
"key": "kndctr_53A[...]C99_AdobeOrg_identity",
"value": "CiYzM[...]snTI=",
"maxAge": 34128000
},
{
"key": "kndctr_53A[...]C99_AdobeOrg_cluster",
"value": "or2",
"maxAge": 1800
}
],
"type": "state:store"
}
]
}
The following query string parameters are available for this endpoint:
datastreamIdStringrequestIdStringA successful response returns HTTP status 200 OK, with one or more Handle objects, depending on the real-time edge services enabled in the datastream configuration.
The locationHint:result handle in the response identifies the edge server that processed the request. To keep subsequent requests in the same session on that server, include the value in the URL path. See Location hints for details.