API Routes
Paths below are relative to the Sigroom API base URL. The browser client forwards them through /api/sigroom. Keep the /v1 prefix on public session routes. Each operation checks its own permissions and feature gates.
Route Groups
| Group | Representative Routes |
|---|---|
| Identity | GET /identity/session, POST /identity/register/options, POST /identity/login/verify |
| OAuth | GET /identity/oauth/:provider/start, GET /identity/oauth/:provider/callback |
| Personal assistant status | GET /identity/assistant?api_version=2 returns the signed-in owner's assistant or null when the shared feature is enabled. |
| Personal assistant inbox | GET /identity/assistant/notifications?api_version=2 requires the current assistant ID in X-Assistant-Account. |
| Workspaces | GET /workspaces, POST /workspaces, GET /workspaces/:workspaceId |
| Rooms | GET /workspaces/:workspaceId/rooms, POST /workspaces/:workspaceId/rooms, PATCH /workspaces/:workspaceId/rooms/:roomId/policy |
| Events | POST /workspaces/:workspaceId/rooms/:roomId/events, GET /workspaces/:workspaceId/rooms/:roomId/events |
| Artifacts | POST /workspaces/:workspaceId/rooms/:roomId/events/:eventId/artifacts, GET /workspaces/:workspaceId/artifacts/:artifactId/content |
| Review | GET /workspaces/:workspaceId/rooms/:roomId/review, POST /workspaces/:workspaceId/rooms/:roomId/review/decisions |
| Projects | GET /workspaces/:workspaceId/projects, POST /workspaces/:workspaceId/projects, defaults, progress, decisions, handoff, scope, IDE, and scans |
| Harness tasks | GET /workspaces/:workspaceId/harness-tasks, POST /workspaces/:workspaceId/harness-tasks/select, PATCH /workspaces/:workspaceId/harness-tasks/:kind/:id |
| Harness sandbox sessions | GET /workspaces/:workspaceId/harness-sandbox-sessions/:sessionId, POST /workspaces/:workspaceId/harness-sandbox-sessions/:sessionId/stop |
| Platform-admin package diagnostics | GET /package-security/summary, GET /package-security/findings, POST /admin/package-security/scans; all require platform-admin access and their feature gates |
| Project Journal | GET /workspaces/:workspaceId/projects/:projectId/lifecycle |
| List public sessions | GET /v1/workspaces/:workspaceId/projects/:projectId/sessions requires session:read access to the project and the public sessions entitlement. |
| Create a public session | POST /v1/workspaces/:workspaceId/projects/:projectId/sessions requires session:create access, the public sessions entitlement and an Idempotency-Key header. New sessions also require runtime admission and a policy within the allowed limits. |
| Admin | GET /admin/security, GET /admin/audit, POST /admin/revocations |
Read notification history
With your signed-in owner session, read GET /identity/assistant?api_version=2. If you have an active shared assistant, send its assistant_id in the X-Assistant-Account header with GET /identity/assistant/notifications?api_version=2. The inbox returns 409 ASSISTANT_ACCOUNT_CHANGED for a missing or stale account header. Notifications are ordered newest first. Pass next_cursor unchanged as the cursor query parameter until next_cursor is null.
- The optional limit accepts integers from 1 to 100 and defaults to 50. The service applies the owner's access, deletion and quiet-hour delivery rules on each request.
- Reading messages already delivered works while scheduling or live providers are disabled. The recent inbox summary still returns up to 100 messages.
Harness Task Permissions
| Action | Required Access |
|---|---|
| List harness tasks and sandbox session status | workspace.read |
| Select, edit, complete, or test loop tasks | review.decide plus active room membership for the affected loop workitem |
| Stop a sandbox session | review.decide for a loop task or workspace.admin for a project task |
| Select a project task directly | Rejected with HARNESS_TASK_APPROVAL_QUEUE_REQUIRED; use task documents and execution-intent review |
| Edit or complete a project task | workspace.admin |
| Open a sandbox session | workspace.admin for a project task or review.decide for a loop task, the runtime admission entitlement, and active membership if the task has a room |
| Run tests through command profiles | review.decide and command profiles already allowed on the loop workitem |
Source Material
- apps/api/src/server.ts
- apps/api/src/modules
- apps/api/src/modules/harness-tasks/routes.ts