Skip to main content

API keys

All requests (except /health) require an API key passed in the X-Partner-API-Key header:

Key format

Keys use the prefix pk_live_ followed by a random hex string. Example:

Creating keys

API keys are created in the Modulate admin UI:
  1. Navigate to Organizations and select your organization
  2. Open the API Keys card
  3. Click Create API Key
  4. Copy the key immediately — it is only shown once

Security

  • Keys are SHA-256 hashed before storage — Modulate never stores your plaintext key
  • Keys are scoped to your organization and can only access merchants in your portfolio
  • Attempting to access a merchant outside your portfolio returns 403 MERCHANT_NOT_IN_PORTFOLIO

Scopes

Additional scopes will be added as write endpoints are introduced.

Error responses