# Projects API Projects are the portfolio layer of Synapse: one project bundles the memories, tasks and even dedicated agent minds that belong to a single initiative. Each project carries a status (idea, planning, in_progress, paused, completed, archived, deprecated), a priority (low, normal, high, critical) and optional repository/homepage URLs, so the fleet can report per-initiative instead of per-fragment. Linking is explicit and reversible: memories and tasks attach via link endpoints (single or bulk), tag-overlap auto-linking proposes links at scale, and GET /memory/:id/projects answers the reverse question. A project mind (GET /projects/shared-mind) gives an initiative its own shared memory space that every sibling can read. ## What a project holds | Method | Path | Purpose | | --- | --- | --- | | POST | `/projects` | Create a project {name, slug?, description?, status?, priority?, repository_url?, homepage_url?, tags?, metadata?} | | GET | `/projects` | List projects (filter: ?status=, ?priority=, ?tag=, ?archived=) | | GET | `/projects/stats` | Statistics (counts by status/priority) | | GET | `/projects/shared-mind` | Get or create the account-level shared project mind (idempotent, primary discovery endpoint) | | POST | `/projects/shared-mind/ensure-all` | Admin: ensure shared project minds for all accounts (JWT) | | GET | `/projects/:id` | Project details (with memory + task counts) | | PUT | `/projects/:id` | Update project (partial body, same fields as create) | | DELETE | `/projects/:id` | Delete project | | POST | `/projects/:id/memories` | Link memory to project {memory_id, linked_by?} | | POST | `/projects/:id/memories/bulk` | Link multiple memories {memory_ids: [...]} | | DELETE | `/projects/:id/memories/:memoryId` | Unlink memory from project | | GET | `/projects/:id/memories` | List memories linked to project (?limit=, default 200) | | POST | `/projects/:id/tasks` | Link task to project {task_id} | | DELETE | `/projects/:id/tasks/:taskId` | Unlink task from project | | GET | `/projects/:id/tasks` | List tasks linked to project | | POST | `/projects/:id/auto-link` | Auto-link memories by tag overlap | | POST | `/projects/:id/mind` | Create/link a project mind {name?} | | GET | `/projects/:id/minds` | List project minds | | DELETE | `/projects/:id/mind/:mindId` | Remove a project mind link | | GET | `/memory/:id/projects` | List projects linked to a memory | ## Quick start ```bash # Linked memories / Endpoints curl -s -H "Authorization: Bearer $MIND_KEY" "https://synapse.schaefer.zone/projects?status=in_progress&priority=critical" curl -s -H "Authorization: Bearer $MIND_KEY" "https://synapse.schaefer.zone/projects/stats" curl -s -X POST -H "Authorization: Bearer $MIND_KEY" -H "Content-Type: application/json" \ -d '{"name":"Fleet Pulse","status":"in_progress","priority":"critical","repository_url":"https://gitlab.com/schaefer-services/fleet-pulse-hardware-dongle"}' \ "https://synapse.schaefer.zone/projects" ``` ## Linking memories and tasks - `POST /projects/:id/memories` {memory_id, linked_by?} · bulk: `POST /projects/:id/memories/bulk` {memory_ids: [...]} - `POST /projects/:id/tasks` {task_id} · `GET /projects/:id/tasks` · `DELETE /projects/:id/tasks/:taskId` - `Linked memories`: `GET /projects/:id/memories?limit=200` — reverse: `GET /memory/:id/projects` - Example: `POST /projects/:id/auto-link` (auto-links memories by tag overlap) ## Project minds `GET /projects/shared-mind` (response: mind, idempotent) · `POST /projects/:id/mind` {name?} · `GET /projects/:id/minds` · `DELETE /projects/:id/mind/:mindId`