Whistleblower (reporting channel)
GET /whistleblower
Lists the tenant's reports (via x-api-key). It never exposes the encrypted content of the report (descriptionEnc) or reporter data: only metadata: referenceCode, category, status, isAnonymous, dates and the assigned owner.
Query params: status
GET /whistleblower/:id
Details of a report (via x-api-key). Warning: unlike the list endpoint, this one decrypts and returns the sensitive content: description, reporterName and reporterEmail. Anyone holding a tenant API Key has access; restrict key distribution accordingly.
PUT /whistleblower/:id
Update a report. Body: { status, assignedToId, internalNotes, resolution, managerUpdate }.
Public report submission (
POST /api/whistleblower/submit), status lookup (GET /api/whistleblower/track) and attachment upload (POST /api/whistleblower/upload) live outside/api/v1, under/api/whistleblower/*. They are used by the public/whistleblowerchannel and do not require an API Key (anonymous access, protected by per-IP limits and the reference code).GET /api/whistleblower/evidenceis the exception: it requires a session with permission to view reports. See Routes outside/api/v1.