Documentation menu

Guides

Everything the reference assumes: the two hosts, the auth reality, how versions work, and the one thing an agent gets wrong most often — snapshots.

Base URLs

SurfaceBase URLVersioning
Cataloghttps://admin.lefthook.com/api/publicx-api-version, enforced
Market Graphhttps://lefthook.com/api/explorernone — data pinned with ?s=
MCPhttps://mcp.lefthook.com/mcpn/a — 30 tools, no apiVersion argument yet

The catalog is served by the admin app. https://lefthook.com/api/public answers 404 — that host does not mount these routes, and no amount of retrying changes that.

The old /v1 prefix still answers as a 308 redirect to the canonical path, with Sunset: Tue, 01 Jun 2027 00:00:00 GMT. It exists for callers written before versions became dates. Do not use it in new code, and do not describe it as the current API.

Authentication

The public catalog API is currently unauthenticated

No key, a bogus x-api-key, and a bogus Authorization: Bearer all answer 200. The gate exists in the route code and is not switched on. Treat every record this API returns as public data.

Send the header anyway. Two mechanisms are accepted by the same check, and both are what the gate will read when it is turned on:

  • x-api-key: <key>
  • Authorization: Bearer <key>

Keys are created and revoked on app.lefthook.com: API keys. That is the same Supabase account as this site — signing in on one host signs you in on the other — so there is no separate developers.lefthook.com account to create.

Do not build a scope or tenancy model on this surface yet. It enforces versions, not identity: there is no per-org key, no OAuth scope check, and no way to tell two callers apart. The console links to the app's key and OAuth screens rather than pretending otherwise.

CORS is open — access-control-allow-origin: *, preflight 204 with allow-methods: GET, OPTIONS — so an unkeyed Try-it runs from any origin. A keyed in-browser call is not uniformly supported: the allow-header list differs per route and some routes do not send x-api-key. Test that before shipping a browser client that relies on a key.

Versions are dates

x-api-version: YYYY-MM-DD. The server selects the newest profile at or before that date; no header means latest. Paths stay unversioned — /apis is /apis in every version.

curl "https://admin.lefthook.com/api/public/apis" \
  -H "x-api-key: $LEFTHOOK_KEY" \
  -H "x-api-version: 2026-12-01"   # optional — omit for latest

Header is optional. Both lines below answer 200.

RequestResult
no header200, latest
x-api-version: 2026-12-01200
x-api-version: 2027-01-01 (future)200 — a future date resolves to latest
x-api-version: 2025-06-01400 { "error": "unsupported version 2025-06-01", "supported": ["2026-12-01"] }
x-api-version: garbage400 { "error": "`x-api-version` must be a date (YYYY-MM-DD)", "supported": ["2026-12-01"] }

The public surface is the only one documented here, and it has exactly one profile today: 2026-12-01. Responses carry x-api-version (the profile served) and x-api-versions (the supported list), so a client can notice a silent upgrade from the response alone instead of from a changelog.

Other surfaces have their own profiles — /api/content, /api/capability-graph, /api/frigg, /api/oauth-admin, /api/understudy — but none of them is public, and this site does not document them. The full matrix lives in docs/api/versions.json, which lists surface roots only.

The Market Graph ignores x-api-version

Send it to https://lefthook.com/api/explorer and it is ignored — garbage included. That surface has no declared or enforced version negotiation. Its equivalent is a snapshot id, which pins the data rather than the contract; see Snapshots.

Pagination and filtering

Every list route takes the same paging parameters and returns the same envelope:

  • page — 1-based, default 1
  • pageSize — 1–100, default 20
  • sort — a whitelisted field per route; an unknown field is ignored, not an error
  • order — asc (default) or desc
  • category, status, featured=true, search — on most routes
{
  "data": [ /* rows */ ],
  "meta": { "page": 1, "pageSize": 20, "total": 70, "totalPages": 4, "hasNextPage": true },
  "links": { "self": "?page=1&pageSize=20", "next": "?page=2&pageSize=20", "last": "?page=4&pageSize=20" }
}

links.next is null on the last page. Three exceptions worth knowing:

RouteShape
/search{data, meta{query,total,returned,types}}; takes limit, not page
/platforms/{slug}/children{data, meta{total,parentSlug}}, unpaginated
/products/categories, /apis/categories, /apis/providers, /stats{data, meta{total}} — facets and counts, unpaginated

Per-route filters: /products adds targetMarket; /apis adds provider; /platforms adds isEcosystem, hasMarketplace, entityLevel; /integration-tools adds openSource and deployment; /case-studies adds industry; /blog-posts adds tag; /partners adds type; /resources adds type and audience.

Market Graph snapshots

The Market Graph records where products show up across directories, and where the gaps are. It is snapshot-pinned: every drill-in takes a snapshot id, and the id is immutable.

S=$(curl -s "https://lefthook.com/api/explorer/current" | python3 -c 'import json,sys;print(json.load(sys.stdin)["snapshotId"])')

curl "https://lefthook.com/api/explorer/search?q=hubspot&s=$S"
curl "https://lefthook.com/api/explorer/card?s=$S&id=prod_hubspot"
curl "https://lefthook.com/api/explorer/product?s=$S&id=prod_hubspot&section=in"

Two calls. Read the pointer, then pass it. A 409 means the pointer moved; re-read /current and retry once.

Never treat snapshotId as a contract version

A snapshot id pins data. It says nothing about whether a tool or field changed shape. That is a different question, and the Market Graph does not answer it — which is why the MCP tools' missing apiVersion argument is a named gap on the agents page.

BehaviourResponse
?s= missing or malformed400 { "error": "missing or invalid snapshot id (s)" }
?s= stale409 { "error": "snapshot superseded", "current": "prod-20261201-explorer" }
a bare slug where an id is expected404 { "error": "unknown product" } — ids are prod_* or a UUID
drill-in sizefirst 25 rows, truncated: true; offset answers 400 "drill-ins are a preview; paging is not supported"

Routes that require ?s=: search, card, product, gaps, directory, render, marketplaces, clusters, universe, ecosystems. explore accepts an omitted s and resolves the live pointer; traverse is flag-gated and answers 503 on the current deployment.

The index at https://lefthook.com/api/explorer is itself a small JSON document describing every route, the snapshot rules and the semantics of the counts. It is the best thing to read first, and it is honest about what the numbers mean: listedIn and listsOut count opposite sides of the graph with different denominators, so subtracting one from the other produces a number no route ever returned.

Two explorer surfaces, one name

/api/explorer/* on lefthook.com is the public read documented here. /api/public/explorer/* on admin.lefthook.com is a key-authenticated server-to-server family. They are not the same thing, and the second one is not public documentation.

The Market Graph sends no CORS headers

A browser fetch from this origin — or any origin — is blocked: the routes answer 200 to curl and carry no access-control-allow-origin. Call the Market Graph from your server or an agent, not from client-side JavaScript. The catalog is the opposite (allow-origin: *), which is why the reference's Try-it works there and not here.

Recipes

Who integrates with X (catalog)

curl "https://admin.lefthook.com/api/public/search?q=shopify&types=platforms&limit=3"
curl "https://admin.lefthook.com/api/public/platforms/shopify/children"

This answers “what is inside this platform”. It does not answer “who lists this product and who does not”. For that, use /api/explorer/gaps.

Inbound vs outbound listings

{
  "id": "prod_hubspot", "n": "HubSpot", "c": "marketing-automation",
  "listedIn": { "total": 768, "integrates": 768, "listed": 0, "top": [ { "id": "ffea5565-…", "n": "Zapier", "kind": "integrates" } ] },
  "listsOut": { "total": 2324, "top": [ { "id": "prod_slack", "n": "Slack" } ] }
}

768 listings point at HubSpot; HubSpot points at 2,324. Those are different denominators — the totals are not comparable and their difference is not a gap count. For gaps, use /gaps, which reports its own coverage object.

Cite a number in an agent's answer

  1. Read /current and keep the snapshotId.
  2. Make every drill-in call with that id.
  3. Quote the snapshot id next to the number. The id is immutable, so the citation stays checkable.

Errors

Catalog errors are { "error": string, "message": string }, with one exception: the version check adds supported.

{ "error": "Bad Request", "message": "Query parameter \"q\" is required." }

401 is reserved for the catalog gate and is not returned today. 429 is not documented because no rate limit is published (see below) — do not assume one exists, and do not assume it does not.

Limits

  • Catalog paging: pageSize is capped at 100. Above that it is clamped, not rejected.
  • Caching: catalog responses carry cache-control: public, s-maxage=300, stale-while-revalidate=600, with vary: x-api-version.
  • Market Graph: 25-row drill-ins, no paging; the API index documents 120 drill-ins per IP per ten minutes.
  • Rate limits on the catalog: not published. None was observed under normal use, and none is documented here because we did not find one to document.

What is deliberately not documented

The admin app's route tree contains more than this site documents. These are not developer-facing, and listing them as public would be wrong:

  • /api/public/explorer/* — key-authenticated server-to-server.
  • /api/public/v2/*, /api/public/submissions, /api/public/_lib — internal surfaces, not a public contract.
  • /v1/* — the 308 shim described above, not a route to document.
  • customer-signal, scorecard, upstream, understudy, marketplace-audit — gated families with their own callers.

If a route is not in the reference, it is because it was not verified as a public read. Every documented path was curled anonymously and answers 200; the script and its output are checked in at apps/developers/evidence/.