Customer Audiences
Customer audience management operations
Get all customer audiences
Returns a paginated list of all customer audiences
Create a new customer audience
Creates a new customer audience with the provided data
Get customer audience by code
Returns a single customer audience by its code
Intersect customer audience segments
Performs boolean set operations (AND, OR, AND_NOT) on multiple customer audience segments using bitmap algebra. All referenced audiences must be segments.
Preview a segment expression
Compiles and executes a segment expression against customer data, returning estimated count and sample customer IDs
Delete a customer audience
Deletes an existing customer audience
Get customer audience by ID
Returns a single customer audience by its ID
Update a customer audience
Updates an existing customer audience with the provided data
Compute segment membership
Triggers segment membership computation by evaluating the segment expression against customer data, computing membership diff, and dispatching add/remove events
Get customer audience member count
Returns the number of members in a customer audience. For segments, uses bitmap cardinality. For lists, uses database count.
List customer audience members
Returns a cursor-paginated list of members in a customer audience. For segments, uses bitmap membership data.
Check customer audience membership
Checks if a specific customer is a member of a customer audience. Checks overrides first, then bitmap membership.
Get segment overlap
Computes the overlap between two customer audience segments using bitmap intersection. Both audiences must be segments.
Preview a saved segment
Executes the saved segment's expression against customer data, returning estimated count and sample customer IDs
List segment expression version history
Returns the expression version history for a segment, ordered by version descending. Each entry records the expression, referenced fields, and computation cost at that version.
Create a new segment version
Creates a new DRAFT version from a PUBLISHED segment. If publish=true, also publishes immediately and triggers computation.
Publish a segment version
Publishes an existing DRAFT segment version, transitioning it to PUBLISHED status and triggering computation. Requires publish=true query parameter.