This endpoint accepts a list of events for a given user and combines them with any pre-existing state for the user to determine the full list of cohorts of which they are a member. State is also persisted, to be applied to subsequent requests for the same user.
Events provided to this endpoint are published to the Permutive Events API, meaning that they will be reflected in other areas of Permutive, for example Insights.
user_id: The Permutive User ID (UUID)alias: A single custom alias with tag and idaliases: A list of prioritized aliases, each with priority, tag, and idname: The event name (e.g., “Pageview”)time: ISO 8601 timestampproperties: Event properties as a JSON objectview_id: UUID to group events within a single page viewsession_id: UUID to group events within a sessionuser_id: The Permutive User IDcohorts: List of cohort IDs the user is currently a member ofactivations: (Optional) Map of activation platform to cohort IDs, if activations=true was setReturn a list of activated cohorts in the response
Validate provided event(s) against their schema before proceeding with segmentation.
By default validation is performed asynchronously after segmentation has been performed and the response has been returned. This can make it difficult to debug issues with invalid events.
It is recommended to use this option only during development and debugging, as validation can be expensive and slow.
A user identifier together with a list of events to be used for segmentation.
The user identifier must be either a user_id, an alias, or a list of prioritised aliases.
The largest number of events that can currently be included in a single request is 10.