Skip to AI Assistant

Collect endpoint (non-interactive collection)

The collect endpoint sends a batch of events to a datastream.

Use this endpoint when events are queued locally for a short period of time. For example, in mobile applications where a lack of network connection is common.

Batch events do not necessarily need to belong to the same visitor, meaning that events can hold different identities within their identityMap object.

This endpoint supports both authenticated and non-authenticated events. The payload 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/collect?datastreamId={Datastream ID}
  • Non-authenticated: POST https://edge.adobedc.net/ee/v2/collect?datastreamId={Datastream ID}
curl -X POST "https://edge.adobedc.net/ee/v2/collect?datastreamId={DATASTREAM_ID}"
-H "Content-Type: application/json"
-d '{
   "events": [
      {
         "xdm": {
            "identityMap": {
               "FPID": [
                  {
                     "id": "79bf8e83-f708-414b-b1ed-5789ff33bf0b",
                     "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"
         }
      },
      {
         "xdm": {
            "identityMap": {
               "FPID": [
                  {
                     "id": "871e8460-a329-4e96-a5b6-ff359fb0afb9",
                     "primary": "true"
                  }
               ]
            },
            "eventType": "web.webinteraction.linkClicks",
            "web": {
               "webInteraction": {
                  "linkClicks": {
                     "value": 1
                  }
               },
               "name": "My Custom Link",
               "URL": "https://example.com"
            },
            "timestamp": "YYYY-08-09T14:09:20.859Z"
         }
      }
   ]
}'

The following query string parameters are available for this endpoint:

ParameterTypeRequiredDescription
datastreamIdStringYesThe ID of the datastream used by the data collection endpoint.
requestIdStringNoProvide an external request tracing ID. The Edge Network always appends an entropy suffix, so the requestId in the response always differs from the supplied value (format: <requestId>-<entropy>). If none is provided, the Edge Network generates a UUID and appends the entropy suffix. Match on the prefix of the returned value when correlating requests to responses.
silentBooleanNoOptional boolean parameter indicating whether the Edge Network should return a 204 No Content response with an empty payload or not. Critical errors are reported using the corresponding HTTP status code and payload.

A successful response returns one of the following statuses, and a requestID if none was provided in the requst.

  • 202 Accepted when the request was successfully processed
  • 204 No Content when the request was successfully processed and the silent parameter was set to true
  • 400 Bad Request when the request was not properly formed (e.g., the mandatory primary identity was not found)

If the events you send through this endpoint belong to a session that also calls interact, reuse the location hint returned by that endpoint in the collect URL path so that the batch is processed on the same edge server. See Location hints for details.

Thank you for your feedback


Thank you for helping improve Adobe's documentation.