GET /api/crm/contact/filter-fields first: it lists every field you can filter on, with its field_category, id, type, and allowed operations. Leave out filter to list all contacts.curl --location '/api/crm/contact/search' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": 1,
"limit": 50,
"filter": {
"condition": "AND",
"criteria": [
{
"field_category": "primary",
"field_id": "email",
"operator": "contains",
"value": "@example.com"
},
{
"field_category": "crm_column",
"field_id": "7a6b5c4d-3e2f-4a1b-8c9d-0e1f2a3b4c5d",
"operator": "is",
"value": "Gold"
}
]
}
}'{
"message": "success",
"data": {
"contacts": [
{
"id": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
"display_name": "Jane Doe",
"phone_number": "6281234567890",
"email": "jane@example.com",
"crm_column": {
"Customer tier": "Gold"
}
}
],
"filter": {
"condition": "AND",
"criteria": [
{
"field_category": "primary",
"field_id": "email",
"operator": "contains",
"value": "@example.com"
}
]
},
"pagination": {
"page": 1,
"limit": 50,
"total_items": 1,
"total_pages": 1,
"has_next_page": false,
"has_previous_page": false
}
}
}