Skip to content
FlagPilot
Menu

Feature

Reusable segments

Define a group of users once, then target it from any flag in the project with in_segment.

A segment has an included list, an excluded list and a set of conditions. Membership checks the excluded list first, then the included list, then the conditions (all must match).

Flags reference a segment with the in_segment or not_in_segment operator. A rule that names a segment key that does not exist treats every context as not a member.

Segments belong to a project and ship inside each environment’s snapshot, so the SDK resolves membership locally like everything else.