Authentication and API keys
Bearer API keys, key levels, scopes, IP allow-lists, expiry and rotation.
Send the key as a bearer token on every request:
GET /v1/balances HTTP/1.1
Host: api.banking.wirebloom.com
Authorization: Bearer wb_live_7Hk2cQab…
X-Tenant-Id: 0192a6f0-0000-7000-8000-0000000000c1Creating a key
A customer Owner or Admin creates keys in the web app (Developers → Keys); an operator owner creates operator-level keys in the operator console (API access → Keys, see Operator getting started). Both can also use createApiKey (POST /v1/api-keys, an interactive-session operation, not part of the public API-key reference) from an interactive session; a fresh step-up verification (api_key.create) is required. The full key is shown once in the response (secret); WireBloom stores only its SHA-256 hash and a display prefix (wb_live_7Hk2cQab). Store it in your secrets manager; if it is lost, rotate or create a new one.
POST /v1/api-keys
{ "name": "ERP sync", "environment": "live",
"scopes": ["balances:read", "transactions:read", "payments:write"],
"ipAllowlist": ["203.0.113.0/24"], "expiresAt": "2027-09-30T00:00:00Z" }Scopes
A key reaches only the operations whose contract lists one of its scopes (x-api-key-scopes, shown on every operation in the reference); anything else is 403 insufficient-scope. A key has a level: customer-level keys hold customer scopes, operator-level keys hold operator scopes (422 scope_not_allowed otherwise), and each operation says which level may call it (x-api-key-level). The scope catalogue lists every scope of both levels with its operations.
Customer-level scopes:
| Scope | Grants |
|---|---|
balances:read | balances, balance details, holds, enabled currencies |
transactions:read | transactions, journal, exports and jobs, annotations and attachments (read) |
statements:read | statements and PDF confirmations |
recipients:read | recipients and field requirements |
recipients:write | create, edit, delete and verify recipients |
payments:read | payments, transfers, scheduled payments, mandates, collections, bulk payments, approvals, funds requests |
payments:write | create/submit/cancel payments, transfers, add money, scheduled payments, mandates, collections, bulk payments, funds requests |
exchanges:read | quotes, exchanges, forward contracts |
exchanges:write | quotes, exchanges, forward contracts and drawdowns |
webhooks:manage | integrator webhook endpoints and deliveries (Webhooks) |
account:read, account:write | profile, settings, addresses, alerts, currencies, balances (open, rename, favourite), limits and fee charges (read), support requests, complaints |
people:read, people:write | people, custom roles, invitations (write); teams (read) (Account management) |
documents:read, documents:write | documents, uploads and document requests |
transactions:write | transaction labels, annotations and attachments |
notifications:read, notifications:write | notifications (read, mark read) |
audit:read | audit events and exports |
cards:read, cards:write | every card of the account and its transactions; issue, activate, freeze, unfreeze |
crypto:read | Crypto positions, activity and statements (reading orders included; placing quotes and orders stays in the app) |
Operator-level scopes (customers:read, customers:write, customers:manage, onboarding:read, operator:read, operator:write, staff:read, staff:write, pricing:read, pricing:write, reports:read, treasury:read, ops-payments:read, compliance:read, support:manage, status:manage, integration:read, webhooks:manage, audit:read) are described in Operator getting started.
Keys never approve anything, never create, rotate or revoke keys and never answer a step-up; people and staff changes by key are limited to roles below admin that cannot approve, invites and resends are limited to 10 a minute per key, and the owners are emailed about each one; operator limit, pricing, fee and pricing-template changes by key also email every operator owner. Payments created with a key follow the same limits and approval tiers as the web app (a payment may wait in pending_approval for a human approver). Some single fields are kept to the app too: PATCH /customers/{customerId}/settings by key refuses stepUpPaymentThreshold (422, errors[].code field_session_only). Operations kept to the app on purpose are listed, with the reason, on session-only operations; any operation without an API-key scope badge in the reference is not available to keys.
Restrictions
ipAllowlist(IPv4/IPv6 addresses or CIDR blocks, up to 20): requests from other addresses get403ip-not-allowed.expiresAt: after it the key is401invalid-api-key.- A customer key is bound to one customer: another
X-Tenant-Idis403tenant-forbidden. An operator key is bound to its operator: a customer id or another operator's id is403. wb_test_keys work only in environments with the sandbox.
Rotation
rotateApiKey (POST /v1/api-keys/{id}/rotate, from an interactive session, optional { "gracePeriodHours": 24 }, default 24, max 168, 0 revokes the old key at once) returns a new key with the same settings; the old key keeps working until the end of the grace period. Deploy the new key, confirm traffic, then revoke the old one (revokeApiKey, DELETE /v1/api-keys/{id}, immediate). lastUsedAt on the key and the per-key usage in the console (Integration and usage) help confirm the switch. Rotation needs step-up api_key.create.