Documentation menu

DX principles

How this portal is built, and what we check when we audit someone else's.

1. Only what is real

Every endpoint documented here was curled against production and answers 200 anonymously. The script and its output ship with the site (apps/developers/evidence/). Anything we could not verify is either dropped or labelled unverified — there is no roadmap tour in the reference.

2. First call in under two minutes

One URL, one optional header, a real JSON response. No SDK install, no sales call, no key required today and no key needed later to read the same data.

3. Agents are first-class readers

llms.txt for a plain-text map, an OpenAPI 3.1 spec Scalar renders and an agent can parse, stable JSON shapes, and a 30-tool MCP server over the same surfaces.

4. One account, two hosts

The console here and app.lefthook.com share one Supabase session — the cookie is scoped to .lefthook.com, so a login on one is a login on the other. No second signup, no token exchange.

5. Predictable shapes

Every list answers data/meta/links; every error answers error/message. Where a route deviates — facets, children, search — the deviation is documented rather than discovered in production.

6. Versioned by date, pinned by data

Contract changes are dated (x-api-version) and enforced with a 400 outside the window. Data changes are pinned by snapshot (?s=) and immutable. The two are never conflated: a snapshot id is not a version, and a version does not promise the same rows.

7. State the limits

A 25-row drill-in with no paging is a product decision, not an accident, and the docs say so up front. Where a number is illustrative or unpublished — rate limits, for one — it says that too instead of inventing a figure.

8. Nothing pretends to be an account

There is no mock org, no fake key and no demo tenant in this site. The console shows your real session and links to the app for key and OAuth management, because those screens already exist and work.

Where these came from

Six of these are the prototype's rules, kept. Two are new because the API changed under them: dated versions and snapshot-pinned data, and one account across two hosts. The prototype's “OAuth for production, test keys for trying” line is gone — it described a key system that does not exist yet.

Get a Developer Experience audit →