Using the API
Authentication, request patterns, and common endpoint usage
Authentication
All endpoints require authenticated access:
- Web: Better Auth session cookie.
- Mobile and external clients:
Authorization: Bearer <token>. - Some workflows may use
x-api-keywhere defined in security schemes.
Core Endpoints
GET /api/accountto list all user accounts.POST /api/accountto create manual accounts.GET /api/transactionto list transactions (recommended descending by date).POST /api/transactionto create manual transactions.GET /api/account/:id/transactionfor account-scoped history.
Example Requests
curl "$API_URL/api/account" \
-H "Authorization: Bearer $TOKEN"curl "$API_URL/api/transaction?limit=20" \
-H "Authorization: Bearer $TOKEN"OpenAPI Explorer
Use the live reference at /api-reference for request/response schema details, parameters, and try-it-out workflows.