Filter Contacts
Advanced contact filtering allows you to search contacts by any combination of top-level fields and custom fields. Results are paginated.
POST/v2.0/contacts/filter
Request Body
JSON
{
"filter": {
"platform": "whatsapp",
"lead_category": "Interested",
"city": "Mumbai",
"customFields": {
"order_count": 3,
"interests": ["cricket", "movies"]
}
},
"page": 1,
"limit": 50
}Filterable Fields
| Field | Type | Match Behaviour |
|---|---|---|
| phone | string | Partial match (case-insensitive) |
| countryCode | string | Exact match |
| contactName | string | Partial match (case-insensitive) |
| string | Partial match (case-insensitive) | |
| platform | string | Exact match |
| businessName | string | Partial match (case-insensitive) |
| city | string | Partial match (case-insensitive) |
| state | string | Partial match (case-insensitive) |
| postalCode | string | Exact match |
| country | string | Partial match (case-insensitive) |
| source | string | Exact match |
| lead_category | string | Exact match |
| optedOut | boolean | Exact match |
| auto_added | boolean | Exact match |
Filter Behaviour
- String values: Partial match using case-insensitive regex
- Array values: Matched using
$in— contact must match any of the provided values - Number / Boolean: Exact match
Custom Fields Filtering
Custom fields use the same matching behaviour as top-level fields. Access them via filter.customFields.{key}.
Results Limit
Maximum 500 results per page. Use pagination for larger result sets.
Code Examples
curl -X POST https://api.sendiee.com/v2.0/contacts/filter \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filter": {
"platform": "whatsapp",
"lead_category": "Interested",
"city": "Mumbai"
},
"page": 1,
"limit": 50
}'Response
{
"success": true,
"data": [
{
"_id": "664...",
"phone": "919876543210",
"contactName": "Priya Sharma",
"city": "Mumbai",
"lead_category": "Interested",
"platform": "whatsapp"
}
],
"pagination": {
"total": 45,
"page": 1,
"limit": 50,
"totalPages": 1
}
}Try It
Try it — API Playground