Contacts
Get contact counts for filters
Returns two contact counts for the caller's role: my (contacts with a conversation assigned to the caller) and all (every contact in the organization for admins, the department's assigned contacts for a department head, the same as my for everyone else). Used by the filter drawer's owner select. Honors search and source filters. Earlier versions also returned a count per user id; those keys are gone.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/contacts/counts" \ -H "Content-Type: application/json" \ -d '{ "search": "jane", "source": "WebForm" }'{ "all": 124, "my": 38}