Send web event to Hub
Open Postman
Launch postman on your computer and navigate to the following API call:
- Postman Left Sidebar -->
Collections - Collection -->
AEP Foundations Bootcamps (labs) - Folder --> Profile Lab
- API Request -->
Create Web Event
Modify API request
To create the sample API request you need to fill in the following pieces in the body of the API request.
Start by gathering the following values:
Find account streaming endpoint
- Navigate to Sources in the left rail and then click on Accounts in the top nav
- Search for dep: HTTP API [raw], highlight the row and copy and save the value of the Streaming Endpoint somewhere you can reference later
![Search for the dep: HTTP API [raw] account and copy its Streaming Endpoint](assets/send-order-event-to-hub-http-api-raw-streaming-endpoint.png “dep: HTTP API [raw]”)
Find web dataflow ID
- Click into the HTTP API [raw] Account
- Find and Select the dataflow row called dep: Web (stream)
- In the right rail copy and save the Dataflow ID values somewhere you can reference later
Create final API request
Copy the values you saved in the previous steps into the places highlighted below.
- Red -->
Streaming Endpoint URL - Green -->
Dataflow ID
Your final API request should look like this when done
Execute the API
- Save your API call by clicking the Save button
- Execute your request by clicking the Send button
A successful call should result in the following response…
Validate
-
Go over to your Profile and look up your Profile to see that the event was ingested onto Profile. It should appear in seconds.
- Use the email in your call to look up the Profile
-
Depending on how long it was since you last sent in an event, you may not qualify for new Segments. Otherwise you may see these or others:
- Any Event Edge (within 15 minutes)
- Remember: all audiences saved with an Edge evaluation also are evaluated on the Hub when streaming data comes in
- dep: Any Event Streaming (within the hour)
- Any Event Edge (within 15 minutes)
-
You may not see anything appear at your webhook if you have no new Segments.
-
Event Forwarding won’t send anything.
- Why? This event went to the Hub, not the Edge, thus, the event will not appear as anything for Event Forward to send, nor in Assurance.
-
After at least 30 minutes, you can even check your dataset with the following:
- Change the table name below to the one from your sandbox. To find it, go to your dataset list and filter on “
dest”, open the dataset and copy the table name on the right rail.
- Change the table name below to the one from your sandbox. To find it, go to your dataset list and filter on “
SELECT * FROM profile_export_for_destination_merge_policy_xxx
WHERE extSourceSystemAudit.LASTREFERENCEDDATE >= CURRENT_DATE
AND identitymap['email'][0].ID in ('depche.mode@dep.com')
ORDER BY extSourceSystemAudit.LASTREFERENCEDDATE DESC
LIMIT 10