Coreflux LoT Templates API
The catalog is available without an API key. Use it when an agent or script needs to search published LoT Notebooks or read one template, including its notebook cells. The website search box uses the same index.
REST
GET /api/templates lists recent templates. Add q to search, for example /api/templates?q=modbus&limit=10. category_id and difficulty filter the list and the search. tag_ids, route_ids, and broker_version_ids apply when q is set. No API key is required.
GET /api/templates/{slug} returns one published template and the latest notebook cells for each filename. GET /api/search?q= is the same search the website posts to /api/search.
Errors
Failed calls respond with an HTTP error status and JSON { "error": { "code", "message", "hint" } }. The hint says what to change. Unknown /api paths use the same shape with code not_found.
OpenAPI spec and MCP server
The OpenAPI specification lists every operation id, parameter, and response schema. llms.txt tells an agent when this library is the right tool. A remote MCP server at /api/mcp exposes the tools searchtemplates and gettemplate. LoT syntax itself is documented at docs.coreflux.org. There is no separate CLI package; call the REST API or MCP.
