How to configure API Key without UI

I am deploying n8n as a part of my software package. I dont use n8n UI at all, all workflows and credentials are loaded via public api provided by n8n via my dashboard.But there is one issue, every time my deployment engineer deploys on a stire he has to generate the api key via ui.Can i generate an api key and passed via part of configuration so that the deployment is fully automated ?