The following is the API reference to control your account and agents through REST requests.
To get a Workspace Secret: VG Dashboard > Top left > Select workspace you want > Copy Workspace secret
To get the Agent secret: VG Dashboard > Agent > Settings > Scroll down