Authentication
All endpoints require:Authorization: Bearer YOUR_API_KEYX-Project-ID: YOUR_PROJECT_ID(or encoded in the API key)
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/contacts/segments | List all segments |
GET | /api/v1/contacts/segments/:id | Get a single segment |
POST | /api/v1/contacts/segments | Create a segment |
PATCH | /api/v1/contacts/segments/:id | Update a segment |
DELETE | /api/v1/contacts/segments/:id | Delete a segment |
Segment Rules
Each rule targets a contact field and applies an operator:| Operator | Description |
|---|---|
eq | Field equals value |
neq | Field does not equal value |
contains | Field contains string |
not_contains | Field does not contain string |
gt / lt | Greater / less than |
gte / lte | Greater / less than or equal |
exists | Field is present and non-null |
empty | Field is null or missing |
status, company, country, etc.) or a dot-path into custom fields (custom_fields.plan).
List Segments
SDK
Create a Segment
SDK
Update a Segment
SDK
Delete a Segment
SDK