Public contract
The canonical machine-friendly JSON routes exposed by the public operator contract.
GET /api/search and GET /api/content/:idOrSlug form the shared public network contract for pages and articles.
Authors: Joel Hooks (https://joelhooks.com) — author
Publisher: gremlin-cms
Updated: 2026-03-08T00:00:00.000Z
The public API plane exists so agents can retrieve structured content without scraping UI chrome.
GET /api/content/:idOrSlug returns canonical resource metadata, markdown links, and related resources. GET /api/search returns scored public results with snippets and stable paths for both contract pages and published articles.
These routes should preserve payload shape and cache headers across frameworks, not just exist.