GET api/v2.0/Messaging/GetUnreadMessageCounts

Returns a key-value pair of ContactKey and Unread Message Count. Includes Inbox Messages, Friend Requests and Community Invitations.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Dictionary of globally unique identifier [key] and integer [value]

Response Formats

application/json, text/json

Sample:
{
  "0b2fe49a-f0aa-4cbd-b460-c87c9e7f557f": 2,
  "b77a66af-a16f-47e8-b49b-a4bc5b547c1d": 4
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfguidint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfguidint>
    <Key>0b2fe49a-f0aa-4cbd-b460-c87c9e7f557f</Key>
    <Value>2</Value>
  </KeyValueOfguidint>
  <KeyValueOfguidint>
    <Key>b77a66af-a16f-47e8-b49b-a4bc5b547c1d</Key>
    <Value>4</Value>
  </KeyValueOfguidint>
</ArrayOfKeyValueOfguidint>