Wallet Infrastructure
Wallet Infrastructure
Platform & Onboarding

Authentication and API Keys

Authenticate requests, issue scoped API keys, and separate test from live projects.

API keys

Every request carries an API key as a Bearer token.

Authorization: Bearer sk_live_...
KeyProjectUse
sk_test_TestBuild and test. Available before verification.
sk_live_LiveReal funds. Requires a verified business (KYB).

A key is shown once, when it is issued. We store only a hash of it, so a lost key cannot be recovered; issue a new one and revoke the old.

Test and live

Each project is either test or live, and its keys match. Creating a live project, or calling with a live key, before your business is verified returns 403 kyb_required. See Verification and Team.

Scopes

Each key carries the scopes you grant it. Every endpoint in the API Reference states the scope it requires.

ResourceScopes
Customerscustomers:read, customers:write
Walletswallets:read, wallets:create, wallets:write
Transactionstransactions:read, transactions:create
Quotesquotes:read
Payment Linkspayment_links:read, payment_links:write
Webhookswebhooks:read, webhooks:write
Recoveriesrecoveries:read, recoveries:create
Recovery contactsrecovery-contacts:read, recovery-contacts:write

Scope by area

AreaReadChange
Wallets, passkeys, guardianswallets:readwallets:create (new wallets), wallets:write
Treasury and spend capswallets:readwallets:write
Payments and approvalstransactions:readtransactions:create
Swaps and transfersquotes:read (quotes)transactions:create

Acting for a customer

Requests about one customer's wallets carry the x-customer-id header, set to the id returned when you created the customer.

x-customer-id: <customer id>

Errors

CodeStatusCause
unauthorized401The Authorization header is missing or malformed, or the key is unknown or revoked.
forbidden403The key lacks the scope the endpoint requires.
kyb_required403A live project or live key was used before your business is verified.
rate_limit_exceeded429The key exceeded its request budget for the window.

On this page