Skip to main content
QUERY
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): JSON

Arguments

ids
[String]

Filter by specific conversation IDs

departmentId
String

Filter by department id.

unAssigned
Boolean

true returns unassigned conversations only, false returns assigned only, omit for no filter.

tag
String

Filter by tag id or name.

integrationType
String

Filter by integration kind (e.g. messenger, email, facebook, whatsapp).

integrationId
String

Filter by a specific Integration id.

participating
String

"true"/"false" — filter conversations where the current user is participating.

awaitingResponse
String

"true"/"false" — filter conversations currently awaiting a customer's response.

starred
String

"true"/"false" — filter starred/favorited conversations.

startDate
String

Filter by start date (ISO date string).

endDate
String

Filter by end date (ISO date string).

segment
String

Filter by customer segment id.

assignedUserId
String

Filter by assigned user/agent id.

sortField
String

Field to sort by (e.g. createdAt, updatedAt). Default: updatedAt.

sortDirection

Sort direction. Default: desc.

only
String

Return a single breakdown instead of all counters: byChannels, byIntegrationTypes, byWorkspaces, byTags, or omit for all per-status counts.

Returns

JSON
Query
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦