Most users should use the CLI or MCP
server instead of calling the API directly.
API surfaces
0 Finance exposes two API surfaces:- CLI API — API-key authenticated endpoints at
/api/cli - Dashboard API — Session/webhook authenticated endpoints at
/api/*
CLI API (API keys)
Base URL
Authentication
Include your API key in theAuthorization header:
Admin authentication
Admin-only endpoints require thex-admin-token header:
Response format
Endpoints return JSON objects. Errors return{ "error": "..." }.
Example error:
CLI endpoint map
Auth & balance
Bank accounts
Bank transfers
Invoices
Transactions
Attachments
Payment details
Crypto transfers
Savings & vaults
Admin endpoints
CLI query parameters
Invoices
status:db_pending,pending,paid,canceledlimit: number
Transactions
status:pending,completed,failedlimit: number
Proposals
include_completed:trueorfalse
CLI examples
Check balance
Create invoice
Propose transfer
Dashboard endpoints (session/webhook)
These endpoints are used by the web app and internal services:- Health check:
/api/health - Upload:
/api/upload(requires a signed-in user session) - Register primary Safe:
/api/user/safes/register-primary - Privy webhooks:
/api/webhooks/auth(HMAC signed)
MCP server
The MCP server at/api/mcp wraps the CLI API for AI agents. See MCP Overview for details.