// Wallets
Wallet Lifecycle
Create, fetch, and update per-agent wallets with X-API-Key auth.
// auth
// access
Authentication required
Include your wallet API key on every request using the documented header and scopes below.
Scopes are documentation-only today — server-side enforcement is keyed to the per-wallet X-API-Key.
// capabilities
- Create a wallet with an agent_id, spending cap, and initial balance
- Fetch the current wallet state with an X-API-Key
- PATCH the spending_limit_cents at any time
- Rotate the API key scoped to the wallet
// pricing
free
No transaction fee — wallet administration only.
// example
// 1. Create the wallet (no auth)
POST /api/wallets
{ "agent_id": "my-agent", "spending_limit_cents": 50000 }
// 2. Read + update it
GET /api/wallets
PATCH /api/wallets
X-API-Key: ak_live_...xxxxxxxx