The ProductBrain API lets LLM agents and scripts read, search, and modify your project. It’s the same API that Claude Code, Cursor, and other AI agents use to operate on your planning tree.Documentation Index
Fetch the complete documentation index at: https://docs.productbrain.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
All requests require a Bearer token — either a per-user API key or a Clerk session JWT.Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/api/nodes | GET | List all nodes in a project (filterable by type, iteration) |
/api/search | GET | Semantic search over nodes using vector embeddings |
/api/mutate | POST | Create, update, or delete nodes |
/api/iterations | GET | List iterations (filterable by status, ¤t=true for active) |
/api/tree | GET | Get a node with its ancestors, siblings, and children |
Key Concepts
Search First
Use
/api/search?q=... to find nodes by meaning. Don’t pull all nodes and filter — the search endpoint uses vector embeddings for semantic matching.Mutations are atomic
Each
/api/mutate call performs one operation: add, update, or delete. Batch mutations use the app’s internal batch endpoint.
