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.
| Methods | Path | Access | Summary |
|---|---|---|---|
| GET | /api/app/home | Signed in | Aggregated home payload for the signed-in dashboard. |
| GET, PATCH | /api/profile | Signed in | Read or update the user profile row (display, avatar, pregnancy prefs, community flags). |
| GET, POST | /api/vitals | Signed in | List or create vital sign entries. |
| GET, POST | /api/symptoms/log | Signed in | List or create symptom log entries. |
| GET | /api/symptoms/log/[id] | Signed in | Fetch a single symptom log by id. |
| GET, POST | /api/appointments | Signed in | List or create appointments. |
| GET, PUT | /api/planner/daily | Signed in | Read or upsert daily planner entries. |
| GET | /api/planner/food | Signed in | Planner food suggestions or logs for the current context. |