conversationCounts
Returns aggregated counts of conversations grouped by various criteria. Useful for dashboard statistics and inbox counters.
conversationCounts(ids: [String], departmentId: String, status: ConversationStatus, unAssigned: Boolean, tag: String, integrationType: String, integrationId: String, participating: String, awaitingResponse: String, starred: String, startDate: String, endDate: String, segment: String, assignedUserId: String, sortField: String, sortDirection: SortDirection, only: String): JSONArguments
Filter by specific conversation IDs
Filter by department ID
Filter by conversation status
Filter unassigned conversations only ('true' to get unassigned, 'false' to get assigned, keep empty for no filter)
Filter by tag ID or name
Filter by integration type (e.g., 'messenger', 'email', 'facebook', 'whatsapp')
Filter by specific integration ID
Filter conversations where current user is participating ('true'/'false')
Filter conversations where customer awaiting response ('true'/'false')
Filter starred/favorited conversations ('true'/'false')
Filter by start date (ISO date string)
Filter by end date (ISO date string)
Filter by customer segment ID
Filter by assigned user/agent ID
Field to sort results by (e.g., 'createdAt', 'updatedAt')
Sort direction: 'asc' for ascending, 'desc' for descending
Specify which count to return: 'byChannels', 'byIntegrationTypes', 'byWorkspaces', 'byTags', or null for all
Returns
Related topics
conversationsTotalUnreadCountconversationResolveAllconversationsConversationcustomerCounts