HTTP reference

API — Profile, home, vitals, symptoms, planner, appointments

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
GET/api/app/homeSigned inAggregated home payload for the signed-in dashboard.
GET, PATCH/api/profileSigned inRead or update the user profile row (display, avatar, pregnancy prefs, community flags).
GET, POST/api/vitalsSigned inList or create vital sign entries.
GET, POST/api/symptoms/logSigned inList or create symptom log entries.
GET/api/symptoms/log/[id]Signed inFetch a single symptom log by id.
GET, POST/api/appointmentsSigned inList or create appointments.
GET, PUT/api/planner/dailySigned inRead or upsert daily planner entries.
GET/api/planner/foodSigned inPlanner food suggestions or logs for the current context.