Get the wallet balance
Get the sub-account's current wallet balance — the same figure the app shows. Read-only.
GET
https://api.centerfy.ai/webhooks/inbound/wallet Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Example
curl -X GET "https://api.centerfy.ai/webhooks/inbound/wallet" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.wallet.get();
console.log(result); centerfy wallet get MCP tool: centerfy_wallet_get (see MCP server)
Response
{
"status": "success",
"wallet": {
"sub_account_id": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"balance": 42.5,
"last_activity_at": "2026-10-05T16:20:00.000Z"
}
}Errors
401— if unauthenticated.
Notes
balance is rounded to 2 decimal places. last_activity_at is the time of the latest wallet ledger entry, or null if there is none.