How many notes the network left for the signed-in user (total) and how many of them are unread (unread).
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/user-preference/notes/unread-count.do
How many notes the network left for the signed-in user (total) and how many of them are unread (unread). The Notes tab shows once total is above 0, and carries unread on its badge. A note is unread until the user marks it as read, and again after the network changes its title or text. Requires the NOTES_TAB_VISIBLE permission.
Responses
200
{success, unread, total}
400
Bad request — invalid or missing parameters
401
Unauthorized — authentication error
403
The role does not show the Notes tab (NOTES_TAB_VISIBLE)
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/user-preference/notes/unread-count.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());