Retrieve events by profile id
This method allows you to retrieve events for a specific profile. It is designed to facilitate customer experiences that display recent actions performed by an individual on their profile.
It provides a range of optional query parameters, enabling you to filter events based on a specific event type, the source capturing the event, the event's date and time, and the locale.
EventType: Returns events for the specified event type. Example: EventType=profile.deleted.
StartAt and EndAt: Returns events for the dates specified.
- Including
StartAtreturns events equal to or greater than than the provided date. - Including
EndAtreturns events equal to or less than the provided date. - If both values are provided, the search will return the events between the specified values. If both values are not provided, the search is inclusive of all dates.
The startAt parameter must be set before endAt and should not exceed the MaxEventHistoryDays setting of 15 days. If the startAt parameter is not specified, the API defaults it to MaxEventHistoryDays.
SourceGroupIds: Returns events for the specified Source Group Id's. Use this parameter if you are interested in receiving events that were recorded by a specific data source. Example: Cookie Preference Center.
Locale: Returns the event name and description in the specified locale. Contact support@possiblenow.com with the list of localized names and description for locales you want to use. A future update will provide an API for programmatic management of these updates.
All API users must have the Event Data - > View Permission enabled within their User Groups.
Sample Events Request
The sample below illustrates an events retrieval request for a profile Id. The results are returned based on the events associated with the profile and also account for any optional query parameters specified.
Header Parameters
Authorization token
Type of the data being sent in the request or the data that is expected in the response. Supports application/json.
Query Parameters
Optional parameter used to limit the events returned to a single type.
Optional datetime. Events created before this datetime will not be returned.
Optional datetime. Events created after this datetime will not be returned.
Collection of Source Group IDs specified as an indexed array.
Show child attributes
Optional parameter used for returning the event name and description in the specified locale. If not specified, the default locale assigned to your MyPreferences account will be used.
Optional parameter that when set to true only returns events that are associated with an active subscription. Defaults to true.
Path Parameters
This is your organization’s MyPreferences account Id. A 404 is returned if this value is invalid.
This is the value that uniquely identifies the profile for which the events are being retrieved.
Response
Response Attributes
System-generated identifier that uniquely identifies an event.
Represents the type of action that occured. It's synonymous with an event.
An allocated field within the event data structure, reserved for advanced event filtering for routing purposes.
Name of the entity associated with the event.
Uniquely identifies the subscription for which the events are being retrieved for
Name of the event.
Description of the event.
This is the value that uniquely identifies the profile for which the events are being retrieved.
Data pertaining to a particular event. It is encapsulated as a nested object with its individual key-value pairs within the Events JSON structure.
Show child attributes
The date and time when the event occurred.
The date and time of the event generation.
The date and time the event was recorded in the system.
The name of the user who recorded the event.