Captble for developers and AI
Work with your cap table from the terminal, your own code, or an AI assistant like Claude, instead of clicking through the app. Everything goes through the same rules as the app: your access, your plan, two-factor, and the checks on shares, pools and 409A prices.
1. Create an API key
In Captble, open Settings, then API. A key belongs to you and one company. Read keys can only look; read and write keys can add stakeholders, issue shares, grant options and record SAFEs. You see the key once; revoke it any time.
Get an API key in Captble2. Use it with Claude, ChatGPT or Cursor (MCP)
Captble runs a Model Context Protocol server, so AI assistants can read your cap table and, with write access, make changes you ask for.
claude.ai, Claude Desktop and ChatGPT: add a custom connector with the address below. You sign in to Captble, choose the company and read or read-and-write access, and that's it. No key to copy. Disconnect it any time in Settings, API.
Connector address
https://captble.com/mcp
Claude Code
claude mcp add --transport http captble https://captble.com/mcp --header "Authorization: Bearer cpt_YOUR_KEY"
Cursor and other apps configured by file (mcp.json), after installing the command-line tool below
{
"mcpServers": {
"captble": {
"command": "captble",
"args": [
"mcp"
],
"env": {
"CAPTBLE_API_KEY": "cpt_YOUR_KEY"
}
}
}
}Then ask things like: “Who owns more than 5% fully diluted?”, “Grant Priya Nair 10,000 options at the current 409A” or “What changed on the cap table this week?”. Assistants are told to confirm before changing anything.
Moving your cap table in: connect with read and write access to a new, empty company, attach your spreadsheet, certificates, SAFEs and board consents to the chat, and ask “Import this cap table into Captble.” The assistant checks it with a preview first, shows you the totals and every holder, and only saves when you confirm.
3. The command-line tool
npm install -g https://captble.com/cli/captble.tgz captble login captble cap-table captble options grant --to "Priya Nair" --shares 10000 captble safes add --investor "Northlight Ventures" --amount 500000 --cap 10000000 captble history --limit 20
Run captble help for every command. Add --json to any reading command for raw output. The key can also come from the CAPTBLE_API_KEY environment variable.
4. REST API
Send the key as a bearer token. Responses are {'data': ...} or {'error': '...'}.
curl https://captble.com/api/v1/cap-table -H "Authorization: Bearer cpt_YOUR_KEY"
curl -X POST https://captble.com/api/v1/options \
-H "Authorization: Bearer cpt_YOUR_KEY" -H "Content-Type: application/json" \
-d '{"stakeholder": "Priya Nair", "shares": 10000}'| GET | /api/v1/company | The company, its plan and fully diluted totals |
| GET | /api/v1/cap-table | Holders with shares by class, options and fully diluted ownership |
| GET | /api/v1/stakeholders | Everyone on the cap table |
| POST | /api/v1/stakeholders | Add a stakeholder: name, type, email |
| POST | /api/v1/shares | Issue shares: stakeholder, shares, price_per_share, stock_class, date |
| GET | /api/v1/options | Option grants with vesting |
| POST | /api/v1/options | Grant options: stakeholder, shares, exercise_price, grant_date, vesting_months, cliff_months, grant_type |
| GET | /api/v1/convertibles | SAFEs and convertible notes |
| POST | /api/v1/convertibles | Record a SAFE or note: investor, amount, valuation_cap, discount, kind |
| GET | /api/v1/valuations | 409A valuations, and the one in effect |
| GET | /api/v1/history | Recent changes and who made them (?limit=50) |
| GET | /api/v1/documents | Documents and signature status |
GET /api/v1 lists every operation with its arguments as JSON Schema. Stakeholders can be named by id or exact name. Option grants default to the 409A in effect and are refused below it unless you pass allow_below_fmv.
Security
Apps that sign in use OAuth 2.1 with PKCE and dynamic client registration; their access tokens last an hour and their refresh tokens rotate on every use. Keys are stored only as a SHA-256 fingerprint. Each request acts as you through a short-lived token, so you can never do more through the API than in the app, and every change appears in the company's history with your name. Keys stop working the moment you revoke them or leave the company. Requests are rate limited.