Context
app/docs/api-reference/page.tsx (177 LOC) lists REST endpoints for the platform. Sprint 2 added the friction-ledger work (work.ts reads, internal auth-gated views) and Sprint 3a added the similarity-preview endpoint (POST /api/similarity/preview); the API reference may have drifted.
Approach
Diff the documented endpoints against the actual filesystem:
find app/api -name "route.ts" | sort
For each endpoint that exists in the code:
- Verify documented method (GET/POST/PUT/DELETE) matches the exported handlers
- Verify documented request/response shapes match the actual code
- Add any new endpoints that aren't documented
For each endpoint documented but not in the code:
- Confirm it was retired and remove the doc entry
Known new endpoints to verify coverage
POST /api/similarity/preview (Sprint 3a) — stateless similarity matching against partial assessment profile, threshold 0.2
- Any endpoints supporting
/intake/[token] status reads
- Any endpoints under
/api/registry or /api/submissions introduced for the ClickUp boundary
Acceptance criteria
Context
app/docs/api-reference/page.tsx(177 LOC) lists REST endpoints for the platform. Sprint 2 added the friction-ledger work (work.tsreads, internal auth-gated views) and Sprint 3a added the similarity-preview endpoint (POST /api/similarity/preview); the API reference may have drifted.Approach
Diff the documented endpoints against the actual filesystem:
For each endpoint that exists in the code:
For each endpoint documented but not in the code:
Known new endpoints to verify coverage
POST /api/similarity/preview(Sprint 3a) — stateless similarity matching against partial assessment profile, threshold 0.2/intake/[token]status reads/api/registryor/api/submissionsintroduced for the ClickUp boundaryAcceptance criteria
app/api/**/route.tsaccounted for in the doc (documented or explicitly skipped)