ClearBooks
Developer API

Build withthe ClearBooks API

Access your financial data programmatically. Our RESTful API enables seamless integration with your existing tools and workflows.

Start in minutes

Make your first API call with just a few lines of code

curl -X GET "https://nwuiorqmvkhxjzjrvnxf.supabase.co/functions/v1/clearbooks-api/v1/transactions?limit=10" \
  -H "x-api-key: cb_live_your_api_key_here"

Capabilities

Built for developers

Everything you need to integrate ClearBooks into your applications.

API Key Authentication

Secure API key-based authentication with granular permission scopes.

Enterprise Security

Bank-level encryption and SOC 2-aligned controls for all API requests.

Rate Limiting

Tiered rate limits from 100 to 10,000 requests per hour based on your plan.

RESTful Design

Clean, predictable REST API with JSON responses and standard HTTP methods.

Webhooks

Real-time notifications for transaction, invoice, and payment events.

OAuth 2.0

Industry-standard OAuth 2.0 for third-party application integrations.

API Reference

Endpoints

Explore all available endpoints and start building integrations.

GET
/v1/me

AI Agents

Or skip the SDK entirely

ClearBooks ships an MCP server alongside the REST API. Point Claude, Cursor or your own agent at it and it discovers every tool on connect — no client library, no endpoint wiring.

Connect an MCP client

336 tools over Model Context Protocol — Claude Code, Claude Desktop, Cursor, Windsurf, or anything that speaks streamable HTTP.

Endpoint
POST
https://nwuiorqmvkhxjzjrvnxf.supabase.co/functions/v1/mcp-server

Required headers

Content-Type: application/json
Accept: application/json, text/event-stream
x-api-key: cb_live_your_api_key_here

A signed-in user's Bearer token also works, but resolves to read-only. Writing needs an API key with an explicit :write scope.

Run in your terminal

claude mcp add --transport http clearbooks https://nwuiorqmvkhxjzjrvnxf.supabase.co/functions/v1/mcp-server \
  --header "x-api-key: cb_live_your_api_key_here"

Replace cb_live_your_api_key_here with a key you created in the Developer Portal. The secret is shown once, at creation.

Handing the whole thing to an agent? Copy the REST and MCP docs together.

Permission Scopes

Granular access control

Request only the permissions your application needs. Each API key can be scoped to specific resources.

clearbooks:transactions:readView financial transactions
clearbooks:transactions:writeCreate and modify transactions
clearbooks:invoices:readView invoices
clearbooks:invoices:writeCreate and send invoices
clearbooks:customers:readView customer data
clearbooks:customers:writeCreate and modify customers
clearbooks:reports:readAccess financial reports, saved report configs, and schedules
clearbooks:metrics:readView financial metrics

Rate Limits

Scalable by design

Rate limits scale with your plan. Contact us for enterprise needs beyond our standard tiers.

Tier
Requests/Hour
Burst Limit
Free
100/hour
10/min
Starter
1,000/hour
50/min
Professional
5,000/hour
200/min
Enterprise
10,000/hour
500/min

SDKs & Libraries

Use your favorite language

Official SDKs and community libraries for popular programming languages.

JavaScript
Official
Python
Official
Ruby
Community
Go
Coming Soon
PHP
Community
Java
Coming Soon
.NET
Community
Rust
Coming Soon

Ready to start building?

Create your API key and start integrating ClearBooks in minutes.