API keys
All requests (except/health) require an API key passed in the X-Partner-API-Key header:
Key format
Keys use the prefixpk_live_ followed by a random hex string. Example:
Creating keys
API keys are created in the Modulate admin UI:- Navigate to Organizations and select your organization
- Open the API Keys card
- Click Create API Key
- 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
| Scope | Description | Default |
|---|---|---|
partner:read | Read access to all endpoints | Yes |