HTTP reference
API — In-app notifications
Route Handlers under src/app/api. Non-public routes expect a Supabase session cookie. Admin routes also require profiles.role = admin.
PublicCallable without a session where the handler allows it.Signed inRequires a signed-in user.AdminAdmin role on your profile.
| Methods | Path | Access | Summary |
|---|---|---|---|
| GET | /api/notifications | Signed in | List notifications for the current user. |
| POST | /api/notifications/mark-read | Signed in | Mark one or all notifications as read. |