Programmatically Auto Changing/Generating the Secret Key, and Programmatically retrieving it

Please help me understand this. Say I have a Business account with around 50 user accounts configured. under it each enabled for generating the required API and other keys. From security perspective I would like to auto-generate the Secret key - say every 3 months. Is there a way which can allow me to generate this key programmatically? And a way which can help me retrieve the Secret key again programmatically? Can’t Zoom User account credentials be used to manage this?