Is there a way to toggle VPN in iOS shortcuts? Is there a way to toggle VPN trough shortcuts in iOS 12? 

Looked into it, but can't really find anything.
First, you need to have a VPN app installed. When you connect to the VPN for the first time (via this installed app OR configuration URL), iOS enables a hidden tag in settings named VPN. This tile isn’t enabled by default, so check if you were connected before to any service or not. This setting was just created to manage an existing connection.
and my second solution is this url : prefs:root=General&amp;path=VPN . but to use this url you need to connect existing app or shortcut (going there with safari does nothing and url is very unstable). here is download of my version of shortcut and sorry for google drive but i'm logged out of icloud :/ . and here is printscreen of code (i'm doing that due to security reasons and people just don't trust me so...) here it is: