Segments API
The Segments API lets you manage reusable user segments programmatically.
| Method | Endpoint | Description |
|---|---|---|
GET | /api/segments | List all segments in a project |
POST | /api/segments | Create a new segment |
GET | /api/segments/:key | Get a segment by key |
PUT | /api/segments/:key | Update a segment |
DELETE | /api/segments/:key | Delete a segment |
Segment objects include the segment key, name, description, and matching rules. Rules define which users belong to the segment based on attribute conditions. All endpoints require a valid JWT token.
note
Full request/response schemas and examples are coming soon.