You don’t need to make a new API call for live. You should be having the live key in the same API call using a shared header. This will use the development key value in test, and the live value in live.