Skip to content

Segments API ​

Create dynamic contact segments for campaign targeting.

Endpoints ​

List Segments ​

http
GET /api/v1/contacts/segments

Create Segment ​

http
POST /api/v1/contacts/segments
json
{
  "name": "VIP Customers",
  "description": "High-value customers",
  "filters": {
    "rules": [
      { "field": "leadScore", "operator": "greaterThan", "value": 80 },
      { "field": "tags", "operator": "contains", "value": "vip" }
    ],
    "logic": "AND"
  },
  "isDynamic": true
}

Get Segment Contacts ​

http
GET /api/v1/contacts/segments/:id/contacts

Filter Operators ​

OperatorDescription
equalsEqual to
notEqualsNot equal to
containsContains
greaterThanGreater than
lessThanLess than
betweenBetween two values
isEmptyIs empty
isNotEmptyIs not empty

Supported Fields ​

FieldType
namestring
emailstring
phonestring
tagsstring
sourcestring
leadScorenumber
lastMessageAtdate
createdAtdate

DOLU.ai - AI-Powered CRM Platform