Use this function to get a cPanel or Webmail account's notification preferences.
uapi --output=jsonpretty \ --user=username \ ContactInformation \ get_notification_preferences
{- "apiversion": 3,
- "func": "get_notification_preferences",
- "module": "ContactInformation",
- "result": {
- "data": [
- {
- "additionalProperties": "string",
- "descp": "Someone logs in to my account.",
- "enabled": 1,
- "name": "notify_account_login"
}
], - "errors": null,
- "messages": null,
- "status": 1,
- "warnings": null
}
}