Overview

If you need to create a segment based on the events or actions performed by your users on your application or website, the recommended approach is to use the filter segment API. With this API, you can create a custom segment by specifying the desired filter conditions. The filter segment API supports various operations, including create, update, get, and list, allowing you to effectively manage your segments based on specific criteria. For more information, refer to Custom Segments.

Filter-based custom segments can be used for the following use cases:

  1. Create a segment of users who have completed a purchase in the last three days.
  2. Create a segment of users who have completed a purchase event in the last three days and live in New York.

The following APIs are available:

Create Custom Segment

This API creates a custom segment based on the filter conditions specified. For more information, refer to Create Custom Segment.

Update Custom Segment

This API updates a custom segment specified by its custom segment ID. For more information, refer to Update Custom Segment.

Get Custom Segment by ID

This API fetches a custom segment using its ID. For more information, refer to Get Custom Segment by ID.

List Custom Segments

This API fetches a custom segment by specifying its name. For more information, refer to List Custom Segments.

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?