API reference

HTTP endpoints exposed by /api. Cookie-auth or MCP key required.

Authentication

All /api routes (except sign-in / sign-up) require the session cookie set during login, or an MCP API key passed as Authorization: Bearer ...

Core endpoints

POST /api/generateGenerate a mindmap from a YouTube URL.
GET /api/mindmapsList your mindmaps.
GET /api/mindmaps/:idFetch a single mindmap.
POST /api/researchRun deep research on a node.
POST /api/quizGenerate a quiz session.
POST /api/notion/exportExport a mindmap to Notion.
POST /api/auth/logoutEnd the current session.

Error shape

json
{
  "ok": false,
  "error": "insufficient_tokens",
  "message": "You need at least 5 tokens to generate a mindmap."
}
Was this page helpful?