Dashboard
Consolidated dashboard
GET
/api/merchants/dashboardStats, daily revenue/cashback timeseries, recent activity, and live BTC prices — already aggregated and currency-converted server-side.
- Every figure is derived from observed sales and cashback payouts. None of it is a Trevi-held balance.
Authentication
Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).
Query parameters
range7d30dcustomoptionaldefault 7d
startstring (ISO)optionalused when range=custom
endstring (ISO)optionalused when range=custom
recentnumberoptionalrecent rows, default 50
GET
/api/merchants/dashboardcurl "https://api.trevi.cash/api/merchants/dashboard?range=30d" \
--header "X-API-Key: $TREVI_API_KEY"Was this page helpful?
