Get All List Segment Condition Operators

🔍 Get All List Segment Condition Operators

Fetch all supported condition operators to be used in segment filters such as "is", "contains", or "starts with".

🔹 HTTP Request

GET API-URL/lists/segments/condition-operators

🔐 Authorization Header

X-API-KEY: your-api-key-here

💻 PHP Example

// GET ALL ITEMS
$response = $endpoint->getConditionOperators();

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "data": {
    "count": "10",
    "records": [
      { "operator_id": "1", "name": "is", "slug": "is" },
      { "operator_id": "2", "name": "is not", "slug": "is-not" },
      { "operator_id": "3", "name": "contains", "slug": "contains" },
      { "operator_id": "4", "name": "not contains", "slug": "not-contains" },
      { "operator_id": "5", "name": "starts with", "slug": "starts" },
      { "operator_id": "6", "name": "ends with", "slug": "ends" },
      { "operator_id": "7", "name": "is greater than", "slug": "greater" },
      { "operator_id": "8", "name": "is less than", "slug": "less" },
      { "operator_id": "9", "name": "not starts with", "slug": "not-starts" },
      { "operator_id": "10", "name": "not ends with", "slug": "not-ends" }
    ]
  }
}

Last updated