This function returns the number of server-wide notifications on an account.
uapi --output=jsonpretty \ --user=username \ Notifications \ get_notifications_count
{- "apiversion": 3,
- "func": "get_notifications_count",
- "module": "Notifications",
- "result": {
- "data": 3,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}