{"name":"Brain API","version":"723efc9","base":"https://brain.thetempleofdoom.com/api/v1","about":"Brain is a smart mind map: type anything and it files itself (groceries onto the grocery list, dates onto the calendar, ideas get web facts with sources), auto-branches with questions, cross-links related thoughts and builds a daily action list. Rules classify instantly; a small language model enriches in the background.","auth":"Brains are private. Every call that reads or writes one needs X-API-Key (make a key in the app: https://brain.thetempleofdoom.com/app, Account). classify_text, the explainer, openapi, health and tools/list need no key.","endpoints":[{"method":"GET","path":"/api/v1","what":"This explainer (HTML for browsers, JSON for agents)."},{"method":"GET","path":"/api/v1/openapi.json","what":"OpenAPI 3.1."},{"method":"GET","path":"/api/v1/health","what":"Liveness, version, model queue."},{"method":"GET","path":"/api/v1/actions.ics","what":"Today's actions and dated items as an iCalendar file. Key."},{"method":"POST","path":"/api/v1/classify","what":"Preview how text would be filed (no key). Body {text}.","mcp_tool":"classify_text"},{"method":"POST","path":"/api/v1/capture","what":"Capture a thought. Body {text, parent_id?, category?}. Key.","mcp_tool":"quick_capture"},{"method":"POST","path":"/api/v1/import","what":"Import a messy list. Body {text | file_base64, title?, mode?: plan|file, commit?}. Key.","mcp_tool":"import_list"},{"method":"GET","path":"/api/v1/map","what":"Outline of the brain. Query node_id?, depth?. Key.","mcp_tool":"get_map"},{"method":"GET","path":"/api/v1/nodes/{id}","what":"One bubble with facts, links, children. Key.","mcp_tool":"get_node"},{"method":"POST","path":"/api/v1/nodes/{id}/expand","what":"Gather web facts (and goal steps) in the background. Body {wait_seconds?}. Key.","mcp_tool":"expand_node"},{"method":"POST","path":"/api/v1/nodes/{id}/done","what":"Mark done. Body {done?: true|false}. Key.","mcp_tool":"complete_action"},{"method":"POST","path":"/api/v1/nodes/{id}/answer","what":"Answer a question bubble. Body {answer?}. Key.","mcp_tool":"answer_question"},{"method":"GET","path":"/api/v1/daily","what":"Today's actions, insights, resurfaced idea, streak. Query tz_offset_minutes?. Key.","mcp_tool":"daily_actions"},{"method":"GET","path":"/api/v1/search","what":"Search bubbles. Query query, limit?. Key.","mcp_tool":"search_brain"},{"method":"POST","path":"/api/v1/goal","what":"Goal mode: set one big goal; Brain plans milestones and steps backwards from the deadline. Body {goal, by?}. Key.","mcp_tool":"set_goal"},{"method":"GET","path":"/api/v1/goal","what":"Big goal progress, milestones, steps, next step. Key.","mcp_tool":"goal_progress"},{"method":"GET","path":"/api/v1/conflicts","what":"Plans/goals that clash, with why. Query tz_offset_minutes?. Key.","mcp_tool":"find_conflicts"},{"method":"GET","path":"/api/v1/forgetting","what":"Branches gone quiet 7+ days. Key.","mcp_tool":"whats_forgetting"},{"method":"POST","path":"/api/v1/forgetting","what":"Snooze a quiet branch for 7 days. Body {snooze_id}. Key.","mcp_tool":"whats_forgetting"}],"examples":["curl -X POST https://brain.thetempleofdoom.com/api/v1/classify -H 'content-type: application/json' -d '{\"text\":\"milk, eggs and bread\\ndentist friday at 3pm\"}'","curl -X POST https://brain.thetempleofdoom.com/api/v1/capture -H 'X-API-Key: br_...' -H 'content-type: application/json' -d '{\"text\":\"go to the store\"}'","curl https://brain.thetempleofdoom.com/api/v1/daily -H 'X-API-Key: br_...'"],"mcp":{"url":"https://brain.thetempleofdoom.com/mcp","transport":"streamable-http","card":"https://brain.thetempleofdoom.com/.well-known/mcp.json","config":{"mcpServers":{"brain":{"url":"https://brain.thetempleofdoom.com/mcp","headers":{"X-API-Key":"br_..."}}}},"tools":["classify_text","quick_capture","import_list","get_map","get_node","expand_node","daily_actions","search_brain","complete_action","answer_question","set_goal","goal_progress","find_conflicts","whats_forgetting"]},"openapi":"https://brain.thetempleofdoom.com/api/v1/openapi.json","llms":"https://brain.thetempleofdoom.com/llms.txt"}