Skip to main content
Most users should use the CLI or MCP server instead of calling the API directly.

API surfaces

0 Finance exposes two API surfaces:
  1. CLI API — API-key authenticated endpoints at /api/cli
  2. Dashboard API — Session/webhook authenticated endpoints at /api/*

CLI API (API keys)

Base URL

For local development:

Authentication

Include your API key in the Authorization header:
Get your API key from Settings → API Keys.

Admin authentication

Admin-only endpoints require the x-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, canceled
  • limit: number

Transactions

  • status: pending, completed, failed
  • limit: number

Proposals

  • include_completed: true or false

CLI examples

Check balance

Response:

Create invoice

Propose transfer

Transfers create proposals that require dashboard approval before executing.

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)
See the endpoint pages in the API sidebar for request/response details.

MCP server

The MCP server at /api/mcp wraps the CLI API for AI agents. See MCP Overview for details.