Skip to content

Developer docs

The Rill API: add captures and ask with sources from your own tools, and use Rill inside Claude, ChatGPT and other AI apps over MCP.

1. Get an API key

Sign in and open Rill → Developers, give your key a name (e.g. “automation script”), and press Create. The raw key is shown on screen exactly once — copy it before you navigate away.

Keys look like rk_live_a1b2c3d4e5f6…. Each is scoped to one user (you). Treat them like passwords: keep them in env vars, never in client-side bundles.

API keys are part of the Rill plan. Pass the key in the X-Rill-API-Key header from any client (curl, Node, Python).

2. Rate limits

Global120 / minute / user
POST /entries20 / minute
POST /captures20 / minute
POST /search/answer20 / minute
POST /search/answer/stream20 / minute
GET /me/cognitive-snapshot10 / minute
POST /me/api-keys10 / hour

Hitting a limit returns 429 Too Many Requests. Back off and retry. A call your plan does not include returns 402 Payment Required with a JSON body that says why.

3. Example: POST /entries

The simplest call — add a text capture to your Rill.

curl -X POST https://api.hellorill.com/entries \
  -H "X-Rill-API-Key: rk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"transcript":"Revisit the Q3 plan tomorrow morning."}'

The answer is the new capture as JSON, with its id.

4. Example: ask, with streaming

POST /search/answer returns one answer and the captures it cites. POST /search/answer/stream sends the same as server-sent events: citations first, thendelta events with the answer's text as it is written, then done with the whole answer (error if something failed).

curl -N -X POST https://api.hellorill.com/search/answer/stream \
  -H "X-Rill-API-Key: rk_live_…" \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{"query":"what was I thinking about Q3?"}'

The request body also takes limit, category,tag, from and to (dates as YYYY-MM-DD), and the two lenses below.

5. Stacks and Channels

Your captures can be narrowed by two cross-cutting lenses:

  • Stacks — by source (voice, email, imports…). GET /me/stacks returns counts and date bounds per stack.
  • Channels — by person. GET /me/channels returns the people mentioned in at least 5 captures (configurable via ?minMentions=), ranked by mention count.

Pass either one to an ask:

// Only captures from one stack
{"query":"what have I been saving lately?","stack":"<stack>"}

// Only captures mentioning one person
{"query":"what did Sarah and I decide?","channel":"<person-uuid>"}

6. Quarterly snapshot

Themes, people, decisions and counts for a quarter, with a written summary. GET /me/cognitive-snapshot defaults to the current quarter; pass ?quarter=2026-Q1 for a specific one.

7. Errors

401The key is missing, wrong or revoked.
402Your plan does not include this call. The body says why.
429Rate limited. Back off and retry.
4xx / 5xxAnything else, with a JSON body that names the error.

8. Rill in Claude, ChatGPT and other AI apps (MCP)

Rill is an MCP server. A connected app can search your captures, open one, read your newest, ask for something worth revisiting, see the people named in your captures, read your saved pages and highlights, and add one capture if you allow it. It cannot edit or delete anything. Vault notes are never shared, nothing is shared if your privacy level keeps AI out, and every read is listed in Rill. Part of the Rill plan.

Claude or ChatGPT: add a custom connector with this address, sign in to Rill when asked, and choose what the app may do. There is no token to copy.

https://api.hellorill.com/mcp

Claude Desktop, Claude Code, Cursor and others: make an access token in Rill (Settings, Advanced, AI apps), then run the rill-mcp package from npm:

{
  "mcpServers": {
    "rill": {
      "command": "npx",
      "args": ["-y", "rill-mcp"],
      "env": { "RILL_TOKEN": "<your access token>" }
    }
  }
}

Revoke a token or disconnect an app in Rill at any time; it stops at once.

9. Privacy posture

A developer API key is scoped to one user — yours, when you mint it in your own settings. When you build a service that holds keys for other Rill users on their behalf, you are responsible for their data: store the keys encrypted, transmit them only over TLS, give users a revoke path, and never log raw keys.

Captures created through the API follow the privacy level the user set in Rill. A capture posted by an integration goes through the same pipeline as any other, and the per-capture What touched this? log shows the user exactly what ran, including where it came from.

Need help? See the full privacy page.