HTTP reference

API — Feedback, facilities, emergency utilities

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.

Back to API overview

MethodsPathAccessSummary
POST/api/feedbackSigned inSubmit in-app product feedback from a signed-in user.
POST/api/facilities/nearbySigned inNearby facilities lookup for maps-style UX.
POST/api/emergency/hospitalsPublicBangladesh hospital catalog lookup (structured POST body).Used by emergency flows; validate body schema in route source.