Add API to retrieve number of unread messages