Get unread notifications count
Query parameters
-
The types of notifications to include in the result
Values are
AskJoinPrivateSpot,ChannelMessageMention,ChannelMessageReported,CourseGeneratedFailed,CourseGeneratedSuccess,CourseParticipantInvited,DiscussionMessageReported,DocumentMention,HubspotConnectionLost,LearningPathParticipantInvited,LiveMention,LiveMessageMention,LiveMessageReported,LiveParticipantInvited,LiveStarted,MemberAddedOnChannel,MemberAddedToForum,MemberAddedToCollection,MessageReplied,NewDirectMessage,NewMessage,ReportStatusUpdated,SmtpServerConnectionFailed,SpotMemberRoleUpdated,SpotMention,TopicAnswerReported,TopicCreated,TopicMention,TopicMessageCreated,TopicMessageMention,TopicReported,UserInvitedToSpot, orUserJoinedPublicSpot.
curl \
--request GET 'https://openapi.meltingspot.io/v1/spotMembers/{spotMemberId}/notifications~unreadCount'
{
"count": 42.0,
"countByTypes": [
{
"type": "AskJoinPrivateSpot",
"count": 42.0
}
]
}