Skip to content

conversationMembershipsAllCounts

All conversation membership tab counts in a single query

Arguments

client_id · String · Filter conversations by client user ID
conversation_type · String · Filter by conversation type: all, individual, or community
keywords · String · Search conversations by keyword
only_include_shared_memberships · Boolean · If true with client_id, only returns client messages that are shared with the provider
org_chat · Boolean · If TRUE: count organization members conversations
provider_id · ID · ID of the provider to get conversation for (if nil, will return current users)
provider_ids · [ID] · Used to filter org chat conversations by provider ids
read_status · String · Filter by read status: all, read, or unread

Returns

ConversationMembershipsAllCounts

Example

query conversationMembershipsAllCounts(
$client_id: String
$conversation_type: String
$keywords: String
$only_include_shared_memberships: Boolean
$org_chat: Boolean
$provider_id: ID
$provider_ids: [ID]
$read_status: String
) {
conversationMembershipsAllCounts(
client_id: $client_id
conversation_type: $conversation_type
keywords: $keywords
only_include_shared_memberships: $only_include_shared_memberships
org_chat: $org_chat
provider_id: $provider_id
provider_ids: $provider_ids
read_status: $read_status
) {
active_count
archived_count
closed_count
scheduled_count
}
}