Hi @Bryce Mowat
You can retrieve messages without any categories by filtering the categories
attribute. You can also use the $count
query parameter to count the set of messages returned.
GET https://graph.microsoft.com/v1.0/me/messages?$filter=not categories/any()&$count=true
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.