# Developer docs

Cubbylark is built to be used by programs and AI agents as well as people. Everything below works with an
account on any plan, including Free.

## REST API

- **Spec:** OpenAPI 3.1 at [https://www.cubbylark.com/openapi.json](https://www.cubbylark.com/openapi.json). It lists every route, the scope each
  one needs, request and response schemas, and the rate limits.
- **Base URL:** `https://api.cubbylark.com/v1`
- **Authentication:** `Authorization: Bearer kc_live_…`. An owner creates keys in Settings → API keys and
  chooses their scopes. A key never has more access than the person who made it, and it stops working when
  they leave. Details: [Authentication](https://www.cubbylark.com/docs/authentication).
- **IDs** are opaque and prefixed (`ck_site_…`, `ck_vis_…`, `ck_hh_…`). Lists use cursor pagination.
- **Errors** say what went wrong and what to do next: `{ "error": { "code": "…", "message": "…" } }`.
- **Writes that reach outside** (a message to a family, a card checkout, a file sent to a state or a member system)
  go through the same policy as the app, and each kind of family message stays off until the organization turns it on.

## MCP server

Connect Claude, ChatGPT, Cursor or any MCP client to `https://api.cubbylark.com/mcp` (Streamable HTTP). Clients sign in with OAuth,
registering themselves, or send an API key. Details: [MCP server](https://www.cubbylark.com/docs/mcp).

## CLI

The `kc` command line covers every resource, signs in with OAuth profiles or a key, prints JSON, and has a
built-in `--jq`. `kc install claude-code` writes a project's `.mcp.json` and a skill for Claude Code; it
references `${KC_API_KEY}`, never the key itself. Install and every command: [CLI](https://www.cubbylark.com/docs/cli).

## Webhooks

- **Outbound:** subscribe to agent and platform events. Every delivery is signed per Standard Webhooks
  (`webhook-id`, `webhook-timestamp`, `webhook-signature`).
- **Inbound:** start an agent from any system with a webhook trigger, authenticated by the trigger's secret
  (`Authorization: Bearer …`). Any tool that can send an HTTP request (Zapier, Make, n8n and others) can call the webhook.

Signing, retries and the event list: [Webhooks](https://www.cubbylark.com/docs/webhooks).

## Machine-readable files

- [llms.txt](https://www.cubbylark.com/llms.txt) and [llms-full.txt](https://www.cubbylark.com/llms-full.txt)
- [pricing.json](https://www.cubbylark.com/pricing.json) and [pricing.md](https://www.cubbylark.com/pricing.md)
- Every page has a Markdown version: add `.md` to its path (`/pricing.md`, `/index.md` for the home page) or
  send `Accept: text/markdown`.
- [security.txt](https://www.cubbylark.com/.well-known/security.txt)
