Get notification without using GUI

Hi, I am using Syncthing as part of my project. I am wondering whether there is a way for me to get notified when a new node is trying to connect without opening up the web gui?

Thanks.

The Device Rejected event looks promising. More info on the Events API.

Thanks. It looks like what I want. Will try now. :slight_smile: