using the api and having a master account key can i generate api key for subaccounts?
no, you have to create in UI.