Added optional deviceId parameter to the alerts/list method