Skip to content
This documentation is currently in preview, therefore subject to change.

Manage API Keys

API keys authenticate your Power Platform connector requests. Manage them securely through the Build a Doc portal.


Creating an API Key

  1. Sign in to the Build a Doc portal
  2. Navigate to API Keys
  3. Click Create New Key
  4. Enter a descriptive name (e.g., “Production Flow”, “Dev Testing”)
  5. Click Create
  6. Copy the key immediately - it won’t be shown again

API Key Best Practices

Naming Convention

Use descriptive names that indicate:

  • Environment (prod, dev, test)
  • Purpose (invoice-flow, report-generator)
  • Owner/team (finance-team, hr-automation)

Key Management

DoDon’t
Use separate keys for different purposesShare one key across all uses
Rotate keys periodicallyKeep keys indefinitely
Revoke unused keysLeave old keys active
Store keys in secure locationsStore keys in plain text

Rotating API Keys

To rotate a key without service disruption:

  1. Create a new API key
  2. Update your Power Automate connections with the new key
  3. Test your flows to confirm they work
  4. Revoke the old key

Revoking API Keys

If a key is compromised or no longer needed:

  1. Go to API Keys in the portal
  2. Find the key to revoke
  3. Click Revoke or Delete
  4. Confirm the action

What happens:

  • Key is immediately invalidated
  • Flows using this key will fail with 401 errors
  • Action cannot be undone

Managing Multiple Keys

When to Use Multiple Keys

  • Separate environments (production vs. development)
  • Different teams or departments
  • Different applications or workflows
  • Auditing and tracking purposes

Tracking Key Usage

Name keys clearly to track:

  • Which flows use which keys
  • When keys were created
  • Who owns each key

Troubleshooting

Key Not Working

  1. Verify key is copied correctly (no extra spaces)
  2. Check key status in portal (not revoked)
  3. Verify subscription is active
  4. Try creating a new key

Lost API Key

If you’ve lost your API key:

  1. You cannot retrieve it
  2. Create a new key
  3. Update your connections
  4. Revoke the lost key (if you know which one)