MITM is aways wrong and dangerous!
I would create a separate protected API that has an additional header such as:
Forward-To-API: database-prod
And have that service lookup the URL and credentials in a secure database and create it's own request to the external service. Even better it could also be your audit log.The Forward-To-API header would be stripped and the rest of the query would be passed through.
-- This is so obvious that it must already exist!