Preview documentation. Description and screenshots come from the dashboard mockup — final values and limits will be confirmed when the production console launches.
API key generation and rotation
A Commerce API key is a pair: public key ID (sent in X-CBA-Key-Id) and
secret signing secret (for HMAC only, never as a Bearer token). The secret
is shown only once — on create or rotation.
Where to do it
- Dashboard → API Console (
/dashboard/developer). - API Keys tab (or "Manage keys" from Overview).
- Set the environment context to Test or Live (segmented control in the console header).
Key list with cba_test_••••XXXX hint, scopes, expiry, and lifecycle status.
Create a key
The Create key button opens a form:
| Field | Meaning |
|---|---|
| Name | Operational label, e.g. partner-staging |
| Environment | Test or Live — the key works only in the selected context |
| Scopes | Deny-by-default; select only what the integration needs |
| Expiration | e.g. 90 days (recommended), 1 year, or no date |
| IP allowlist | Optional CIDR; empty = no IP restriction |
Create key: name, Test/Live, scopes, expiry, IP allowlist.
Typical set to start order integration:
orders:writecatalog:writeresults:read
Add webhooks:write only when configuring the receiver endpoint.
Reveal-once (secret shown once)
After creation, a modal shows:
- Key ID — for the
X-CBA-Key-Idheader (can be copied later from the list). - Signing secret — save immediately in a secrets manager / CI.
- Confirmation checkbox ("I saved the secret…") — Done is active only after checking it.
After closing, the secret cannot be displayed again. The only path is Rotate.
Reveal-once: key ID + secret + required confirmation before Done.
Rotation and revoke
| Action | Behavior |
|---|---|
| Rotate | New secret (reveal-once) + overlap window for the old key (e.g. 24 h), then the old key stops working |
| Revoke | Immediate invalidation; confirmation with reason; subsequent requests → 401 invalid_signature |
List statuses: active, expiring, stale, expired, revoked,
compromised. A banner warns about keys close to expiry.
After creating a key
- Sign requests with HMAC — Authentication.
- Send your first
POST /orders— Quick start. - Or test in Playground (Validate / Sandbox Send) in the Console.