A Segment defines a reusable set of users. You can define a segment based on properties such as location, client device, browser, client application version, or simply using a list of IDs.
For more detail on creating user targeting based on Statsig-derived environment attributes such as location, client device, browser type, and client app version, see the Console API Rules page where all conditions are listed.
Segment API functions
- Create a new segment
- Read data from existing segments
- Update properties of a segment
- Update IDs in a segment
- Delete a segment
All requests must include the STATSIG-API-KEY field in the header. The value should be a Console API Key which can be created in 'Project Settings'->'API Keys' tab.
To use the 'try it' section on this page, enter your Console API into the box below.
Warning! You will be directly modifying the project connected to the api-key provided.
We suggest creating a temporary project when testing our API below.