@paolo Not possible over API, But you can set up an SNMP traps to alert whenever a VPN connection status change. The OID for VPN connection status change is .1.3.6.1.4.1.29671.1.1.7.22
You can download the Meraki MIB under "network-wide > alerts" page under SNMP traps section
More information about setting up SNMP traps
https://documentation.meraki.com/zGeneral_Administration/Monitoring_and_Reporting/SNMP_Overview_and_...
If you found this post helpful, please give it kudos. If my answer solved your problem, click "accept as solution" so that others can benefit from it