You are here:
About Identity Setup for the Event API
Learn about setting up the identity system for the Event API.
Before You Configure
Before configuring Personalization’s identity system for the Event API, make sure to review this information:
API Request Format
For information about formatting API requests, see the developer documentation for Event API Requests.
Option A
In the following example, the API request sends the email address and customer ID identity types as user attributes. The request doesn’t include the user ID parameter.
{
"action": "sample",
"user": {
"attributes": {
"emailAddress": "test@test.com",
"CustomerId": "123"}
},
"source": {
"channel": "Server",
}
}
Option B
In the following code example, customer ID is the identity type for the event API, and the API request is sending it as the user ID parameter. The API request also includes the email address identity type as a user attribute.
{
"action": "sample",
"user": {
"id": "456",
"attributes": {
"emailAddress": "test@test.com"}
},
"source": {
"channel": "Server",
}
}

