API Reference
Hypernext provides a REST API for accessing documents programmatically.
Authentication
API endpoints require a Bearer token obtained via IndieAuth OAuth2 flow.
Endpoints
List Documents
GET /api/v1/docsQuery parameters:
type— Filter by document typetag— Filter by taxonomy term sluglimit— Max results (default 20, max 100)offset— Pagination offset
Get Document
GET /api/v1/docs/:slugReturns the document metadata as JSON.
Get Document as PDF
GET /api/v1/docs/:slug.pdfReturns a PDF generated from the document content.
Get Collection as EPUB
GET /api/v1/collections/:name.epubReturns an EPUB file containing all documents in the collection.
MCP Tools
Hypernext exposes a Model Context Protocol server for AI agent access:
search_docs— Full-text search across documentsget_doc_markdown— Get document rendered as Markdownlist_collections— List configured collections with document counts