Back to Resources

customers

read:customers
bizily://customers

Search and list customers in the CRM. Supports filtering by status, source, tags, and intent score. Returns customer contact info, booking stats, and interaction history.

Parameters

Input Parameters

PropertyTypeDescription
querystringSearch query (searches name, email, phone)
status"lead" | "customer" | "archived"Filter by customer status
sourcestringFilter by acquisition source (instagram, facebook, whatsapp, sms, email, web, direct)
intentScore"high" | "medium" | "low"Filter by lead intent score
tagsstring[]Filter by tags (all must match)
hasEmailbooleanOnly customers with email
hasPhonebooleanOnly customers with phone
pagenumber(default: 1)Page number for pagination
limitnumber(default: 20)Results per page (1-100)
sortBystring(default: lastInteractionAt)Sort field (name, createdAt, lastInteractionAt, totalBookings, totalSpent)
sortDirection"asc" | "desc"(default: desc)Sort direction

Response

Response Schema

PropertyTypeDescription
customersrequiredCustomer[]Array of customer objects
paginationrequiredPaginationPagination metadata

Example

Requestjson
{
  "type": "resource",
  "name": "customers",
  "params": {
    "status": "customer",
    "limit": 10,
    "sortBy": "totalSpent",
    "sortDirection": "desc"
  }
}
Responsejson
{
  "success": true,
  "data": {
    "customers": [
      {
        "id": "uuid-1234",
        "name": "Jane Smith",
        "email": "jane@example.com",
        "phone": "+1234567890",
        "status": "customer",
        "totalBookings": 12,
        "totalSpent": 1250,
        "lastInteractionAt": "2024-01-15T10:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 45,
      "totalPages": 5,
      "hasNext": true,
      "hasPrev": false
    }
  }
}

cURL Example

curl -X POST https://app.bizily.io/api/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{\n  "type": "resource",\n  "name": "customers",\n  "params": {\n    "status": "customer",\n    "limit": 10,\n    "sortBy": "totalSpent",\n    "sortDirection": "desc"\n  }\n}'