Ledger and reports
GET/v1/treasury

Get treasury

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/treasury" \  -H "Cookie: <console session cookie>"

Returns the simulated Treasury: funds in connected wallets, idle and swept balances, positions and a yield projection at a fixed 4.20% APY. Simulated: no funds move. Requires ledger:read.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/treasuryBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Requires permissionledger:read
Held by owner, admin, finance, merchant_owner, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Response Body

Success.

application/json
  1. response
simulated?Simulated

True when the figure is simulated and no funds move.

Defaulttrue
apy_bps*Apy Bps

Simulated annual yield in basis points (420 = 4.20%).

funds*
idle_balance*
swept_balance*
wallets*array<>
projection*
positions*array<>
[key: string]?any