Build
Read data
Every read route takes the four signature headers plus Authorization: Bearer <access_token>. A route answers only if the user allowed its scope for this link.
Routes
| Route | Needs scope | Returns |
|---|---|---|
GET /account | any link | username, first_name, and the link's scopes and dates |
GET /balances | balances | The nTZS balance (in TZS) and the USDC balance (in USD), with as_of |
GET /transactions | transactions | A page of transactions, newest first, and next_cursor |
GET /stocks/holdings | stocks | Each holding: symbol, quantity, price, value, cost, gain |
GET /stocks/activity | stocks | Finished buys and sells |
DELETE /link | any link | Ends the link from your side |
GET
/accountscope: any linkReturns username, first_name, and the link's scopes and dates. Use it to show whose account is linked and when consent runs out.
GET
/balancesscope: balancesThe nTZS balance, in TZS, and the USDC balance, in USD.
{ "balances": [ { "asset": "NTZS", "currency": "TZS", "amount": 184500 },
{ "asset": "USDC", "currency": "USD", "amount": 12.4 } ],
"as_of": "2026-11-18T09:41:00.000Z" }GET
/transactionsscope: transactionsA page of transactions, newest first.
| Query | Meaning |
|---|---|
limit | 1 to 100, default 20 |
cursor | Pass next_cursor back here for the next page; null means there are no more |
from, to | ISO 8601 dates |
{ "transactions": [ { "id": "...", "type": "ntzs.spend_completed",
"direction": "out", "status": "completed",
"amount": 15000, "currency": "TZS",
"occurred_at": "2026-11-18T06:41:00.000Z" } ],
"next_cursor": "..." }directionisin,out,swap, ornonefor an attempt that failed.statusiscompleted,failedorrefunded.typesays what kind it was, for examplentzs.deposit_completed,wallet.transfer_out,swap.completed.- The names of the people a user paid or was paid by are not shared.
GET
/stocks/holdingsscope: stocks{ "holdings": [ { "symbol": "CRDB", "currency": "TZS", "quantity": 120,
"price": 650, "value": 78000, "cost": 72000,
"gain": 6000, "gain_pct": 8.33 } ],
"as_of": "..." }cost, gain and gain_pct can be null when they cannot be worked out reliably.
GET
/stocks/activityscope: stocksFinished buys and sells.
DELETE
/linkscope: any linkEnds the link from your side. See Link a user.
When data cannot be read
BALANCE_UNAVAILABLE, HOLDINGS_UNAVAILABLE and UNAVAILABLE answer with status 503. Try again shortly, keep showing the last data you read, and never show a zero in the meantime. The full list is on Errors.