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

Authentication

Overview

The Build a Doc connector uses API Key authentication to authorise requests to the Build a Doc service.


Authentication Method

PropertyValue
TypeAPI Key
LocationRequest header
Header Namex-api-key

API Key Structure

API keys are unique identifiers associated with your Build a Doc subscription. They:

  • Identify your subscription
  • Authorise operations
  • Track usage for billing
  • Enable rate limiting

Obtaining an API Key

  1. Sign in to the Build a Doc portal
  2. Navigate to API Keys
  3. Click Create New Key
  4. Copy the key immediately

Using the API Key

In Power Automate

When creating a connection:

  1. Add a Build a Doc action to your flow
  2. Click + Add new connection
  3. Enter a connection name
  4. Paste your API key
  5. Click Create

Connection Storage

  • Connections are stored securely by Power Platform
  • Keys are not visible to other users
  • Connections are user and tenant-specific

Security Requirements

Key Protection

  • Store keys in secure locations (password managers, Azure Key Vault)
  • Never expose in client-side code
  • Never commit to source control
  • Never share via insecure channels

Access Control

  • Limit who can access keys
  • Use separate keys for different purposes
  • Suspend keys when no longer needed

Key Lifecycle

StateDescription
ActiveKey is valid and can be used
SuspendedKey has been deactivated; requests fail with 401

Multi-Environment Strategy

Use separate API keys for:

EnvironmentPurpose
DevelopmentTesting and development
Test/UATPre-production validation
ProductionLive business operations

Benefits:

  • Isolated usage tracking
  • Independent rotation schedules
  • Clear audit trails

Key Rotation

Rotate keys periodically for security:

  1. Create new key
  2. Update connections
  3. Test thoroughly
  4. Suspend old key

Recommended rotation frequency: Every 30-180 days or per your security policy.

Expiration options are

  • 30 days
  • 60 days
  • 90 days
  • 1 year