Sign in

Collect batch events (authenticated)

documented

Send a batch of authenticated events to a datastream.

POST /ee/v2/collectData Collection APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://server.adobedc.net/ee/v2/collect?datastreamId={{$datastream_id}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "x-gw-ims-org-id: {{$ims_org_id}}" \
  -H "x-api-key: {{ADOBE_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"events": [
    {
      "xdm": {
        "identityMap": {
          "FPID": [
            {
              "id": "{{$fp_id}}",
              "authenticatedState": "authenticated"
            }
          ]
        },
        "eventType": "web.webpagedetails.pageViews",
        "web": {
          "webPageDetails": {
            "URL": "{{$url}}",
            "name": "{{$page_name}}"
          }
        },
        "timestamp": "{{$timestamp}}"
      },
      "data": {
        "prop1": "{{$prop1}}"
      }
    },
    {
      "xdm": {
        "identityMap": {
          "FPID": [
            {
              "id": "{{$fp_id}}",
              "authenticatedState": "authenticated"
            }
          ]
        },
        "eventType": "web.webinteraction.linkClicks",
        "web": {
          "webInteraction": {
            "linkClicks": {
              "value": {{$link_clicks}}
            }
          },
          "name": "{{$page_name}}",
          "URL": "{{$url}}"
        },
        "timestamp": "{{$timestamp}}"
      }
    }
  ]}'
Collect batch events (authenticated) · Adobe · OpenIntegrations