Contact Metrics
Get aggregated contact metrics
Return aggregated contact counts bucketed by the categories configured for the org/pipeline (e.g. "New", "Working", "Closed"), with contacted/never-contacted splits. Scope is derived from the caller's role (own contacts / department / whole org).
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Query Parameters
startDate?string
Format
date-timeendDate?string
Format
date-timepipelineId?string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/contact-metrics/contact"{ "success": true, "data": { "scope": "Your Contacts", "total": 124, "contacted": 91, "neverContacted": 33, "categories": { "new": { "name": "New", "count": 22, "contacted": 0, "neverContacted": 22, "color": "#3B82F6" }, "working": { "name": "Working", "count": 47, "contacted": 38, "neverContacted": 9, "color": "#10B981" }, "closed": { "name": "Closed", "count": 43, "contacted": 43, "neverContacted": 0, "color": "#6B7280" } }, "uncategorized": { "count": 12, "contacted": 10, "neverContacted": 2 }, "pipelineId": "66f0a0b0c0d0e0f0a0b0c0d0", "pipelineName": "Sales pipeline" }}