Solved! Solved! Go to Solution.
Thanks for being here and elaborating on your use case. It's currently not possible to automate the creation of an OAuth app.
We already received similar feature requests from other customers and I added you to the list of requesters in our internal tracking system.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!