API use

Hi all,

Could anyone help me with where I should store my .env files in Mindstudio for secure API key management? Also, is using global.api_key recommended, or is there a better approach for handling sensitive credentials?

1 Like

You can use the secret configuration item type for API keys in MindStudio function. Try remixing this demo agent: https://app.mindstudio.ai/agents/copy-of-demo-secret-key-fcfb7dfb/remix and take a look at the Configuration tab for the function. Let me know if that helps!

3 Likes

Thanks so much, Sean!

1 Like