Power Automate - Best practice for securely storing an API key used in an HTTP request

2026-08-27T10:50:51.14+00:00

We are designing a Power Automate cloud flow that needs to call an external REST API over HTTPS.

The external platform supports API key authentication and recommends using a dedicated non-human integration account with minimum permissions. The API key would be used by Power Automate to send an HTTPS POST request to the external API.

We would like to understand Microsoft's recommended security approach for this scenario, specifically:

  1. What is the recommended way to securely store an external API key used by an HTTP action in Power Automate?
  2. How can we prevent the API key or Authorization header from being exposed in the flow's run history, action inputs/outputs, logs, or to users who do not need access to the credential?
  3. Are Secure Inputs and Secure Outputs sufficient for protecting the credential, or is it recommended to store the API key in Azure Key Vault (or another secret store) and retrieve it at runtime?
  4. If Azure Key Vault is recommended, what is the recommended pattern for retrieving the secret and passing it to the HTTP action without exposing its value in the run history?
  5. From a Power Automate security perspective, would a custom connector with API key authentication provide better credential protection than manually adding the Authorization header to an HTTP action?
  6. The external API also supports OAuth 2.0. For this type of automated server-to-server integration, does Microsoft recommend OAuth 2.0 over an API key, or is an API key considered appropriate when it belongs to a dedicated integration account and is securely stored?
  7. Are there any additional Power Platform controls or best practices we should apply, such as restricting flow ownership/edit permissions, DLP policies, environment controls, or credential rotation?

Our main objective is to ensure that the API credential cannot be retrieved by unauthorized users through the flow definition or execution history while keeping the integration secure and maintainable.

Thank you in advance.

Centro de la comunidad | Sin supervisar
0 comentarios No hay comentarios

Su respuesta

Las respuestas pueden ser marcadas como "Aceptadas" por el autor de la pregunta y "Recomendadas" por los moderadores, lo que ayuda a los usuarios a saber que la respuesta ha resuelto el problema del autor.