Skip to main content

Segments

Segments are reusable groups of users that can be referenced across multiple feature flags. Instead of duplicating targeting rules on every flag, you define a segment once and use it wherever needed.

A segment is defined by a set of rules that match users based on their attributes (for example, all users with plan = "enterprise" or country in ["US", "CA"]). When you update a segment's rules, every flag that references that segment is automatically affected.

Segments are scoped to a project and shared across all environments within that project. This makes them ideal for defining audiences like "beta testers" or "internal employees" that apply consistently across your infrastructure.