/
RE
rewritelifestyle
Search skmtc…
⌘K
Docs
Sign in
Docs
History
Schema
Generate
Filter operations
Access Codes
1
Admin
167
Admin - Activity Log
5
Admin - Admin Activity Log
2
Admin - Audit Log
2
Admin - Campaigns
12
Admin - Engagement Segments
4
Admin - Promotions
4
Admin - Provider Truth
2
Admin - Revenue Drilldown
6
Admin - Rollout Cohort
3
Admin - Subscriber Segments
6
Admin — Assignments
5
Admin — Attendance
2
Admin — Client status
3
Admin — Coach stats
2
Admin — Recordings
2
Admin Push Campaigns
3
admin-scheduling
6
AI Coach
5
Announcements
4
App
3
App sessions
1
Assignments
5
Auth
18
badges
1
Bowel Movements
7
Bridge Key Admin
8
Campaigns
7
chat
32
Coach
58
get
/api/coach/dashboard-summary
Mobile Coach API #1 — Home "Coaching" card + Coaching tab alert card. Open alert counts by priority + today's food-log completion stats, across every consented client (shared coaching inbox — every coach sees every client).
get
/api/coach/client-alerts
Mobile Coach API #2 — Client Alerts page. Cursor-paged, open alerts across every client (shared coaching inbox).
patch
/api/coach/client-alerts/{alertId}/assignee
ALR-02 — assign an open alert to a coach (or unassign with null). The coach gets a push unless they assigned it themselves. Every coach still sees it.
get
/api/coach/coaches
Active coaches, for assigning an alert
get
/api/coach/stats
CMP-05 — the caller's own stats for 7d / 30d / all: responses to clients (first coach message after a client message), median response time, who is waiting now, reviews given, and their pinned clients: active vs dormant (7 days) and time in app.
get
/api/coach/past-clients
GRP-04 — clients whose program has ended, names only: a coach's access ends with the program (V2-02). Cursor-paged, newest end first.
post
/api/coach/clients/{id}/mark-past
End a current client's program today (V2-02). They become past: member tier, 1:1 coach rooms read-only, group chat kept. Only an admin can make them current again.
get
/api/coach/clients/{id}/alerts
Mobile Coach API #5 — Client Detail "Alerts" tab. Full (unpaged) rich alert cards for one client, with action button captions.
patch
/api/coach/clients/{id}/alerts/{alertId}/dismiss
Manually dismiss an open client alert.
post
/api/coach/clients/{id}/chat-room
Find-or-create the 1:1 coach–client DM room for this client, so the app can navigate straight to it (chat header button, alert card "Message" action).
get
/api/coach/client-directory
Mobile Coach API #3 — Client Directory page. Cursor-paged, searchable roster of every client (shared coaching inbox).
patch
/api/coach/clients/{id}/overlay
CMP-06/CMP-07 — set this coach's own colour tag and/or pin for a client. Never a restriction — every coach still sees every client. A pin also routes the client's alerts: while one coach has them pinned, new alerts are assigned to that coach (ALR-02, 12 Oct 2026).
get
/api/coach/clients/{id}/detail
Mobile Coach API #4 — Client Detail page: identity header + Client info tab + Notes tab + Medical Overrides. Deliberately not GET /coach/clients/:id — that path already serves the admin web dashboard with a different response shape.
get
/api/coach/clients/{id}/questionnaire
Mobile Coach API — the client's questionnaire answers, grouped by section in survey order. Defaults to the onboarding (intake) survey. Each answer is flattened to display strings (`values`, plus `display` joined with ", "). Unanswered questions are omitted. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/nutrition
Mobile Coach API #6 — Food & Health tab, Food half. One day's macro totals-vs-goal + per-meal breakdown.
get
/api/coach/clients/{id}/food-preferences
A user's saved food preferences, for a custom meal plan prize
get
/api/coach/clients/{id}/health-insights
Mobile Coach API #7 — Food & Health tab, Health half. Weight chart, vibe check, food adherence summary, and sleep/steps/HRV/readiness sparkline cards.
post
/api/coach/clients/{id}/notes
Create a coach note for a client
delete
/api/coach/clients/{id}/notes/{noteId}
Delete one of the requesting coach's own notes on a client
patch
/api/coach/clients/{id}/notes/{noteId}
Edit one of the requesting coach's own notes on a client
post
/api/coach/clients/{id}/overrides
Activate or update a medical override on behalf of a client. Same override_type enum and idempotent upsert-by-type as the self-serve and admin endpoints — this route just adds this coach's assignment scoping. Stamps source="coach_set".
delete
/api/coach/clients/{id}/overrides
Deactivate a client's active medical override of the given type.
get
/api/coach/triage
Daily-rounds triage feed for the coach dashboard. Aggregates crisis-flagged conversations + VaultHooks coaching-priority pattern detections (underfueling, late-night eating, meal skipping, weight plateau, sodium spike, shake over-reliance, etc.) into a single severity-sorted feed. Each row includes client name + surgery_date + active medical overrides so the UI can render phase context without extra round-trips. Cached per-coach for 60s.
get
/api/coach/clients
List active clients with paginated daily summary
get
/api/coach/clients/{id}
Get detailed client view with macros, logs, notes
get
/api/coach/dashboard-stats
Get coach dashboard statistics
post
/api/coach/generate-note
AI-generate a personalized coach note (requires OpenAI)
get
/api/coach/groups
List active groups with their current-client counts and, for a cohort, its week
patch
/api/coach/food-logs/{logId}/review
Add coach feedback to a food log entry
get
/api/coach/clients/{id}/diary/gratitude
Get client morning gratitude entries (consent required)
get
/api/coach/clients/{id}/diary/inventory
Get client nightly inventory completion state (consent required)
get
/api/coach/clients/{id}/diary/trend/{metric}
Mobile Coach API — "View trends" on a Client diary section. metric: water | movement | vitamins | vibes. Byte-for-byte mirror of the client's own GET /log/{metric}/trend (GET /vibe-log/trend for vibes), bucketed in the client's stored timezone. Vibes count every log, as the diary shows them. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/diary/bowel-movements/trend
Mobile Coach API — Poop tab of a client's trends. Byte-for-byte mirror of GET /bowel-movements/trend (period: week | month | 6months). Requires coach_data_consent_at.
get
/api/coach/clients/{id}/diary/digestive-symptoms/stats
Mobile Coach API — Digestion tab of a client's trends. Byte-for-byte mirror of GET /digestive-symptoms/stats (period: week | month | 6months). Requires coach_data_consent_at.
get
/api/coach/clients/{id}/diary/digestive-symptoms/calendar
Mobile Coach API — Digestion tab's calendar. Byte-for-byte mirror of GET /digestive-symptoms/calendar (year, month). Requires coach_data_consent_at.
get
/api/coach/clients/{id}/day-details
Mobile Coach API — "Client diary" drill-in from the Food & Health tab. Full day activity for one date: food/water/movement/weight/measurements/photos/vibe/bowel/digestive/supplements (same payload as the client's own day-details view), plus real gratitude/inventory entry content (diary.gratitudeEntry / diary.inventoryEntry) alongside the existing diary completion-status fields. Consent required (coach_data_consent_at).
delete
/api/coach/clients/{id}/food-logs/{logId}/review
CMP-09 — withdraw a food log review: the feedback leaves the client's diary and its chat card is deleted (so it also leaves the AI context). Kept in the review history. Only the coach who wrote it, or an admin. No push.
patch
/api/coach/clients/{id}/food-logs/{logId}/review
Mobile Coach API alias for the existing (admin-web) PATCH /coach/food-logs/:logId/review — same underlying action (saves coach_feedback/reviewed_by/reviewed_at on the food log, sends a chat message + push to the client), reached via the /coach/clients/:id/... convention this API otherwise uses everywhere. Additionally verifies the log actually belongs to clientId — the bare route has no such check since it has no client id in its path at all. 404 (not the bare route's 403) if the log belongs to a different client. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/day-reviews
CMP-09 — the reviewed days in a range (at most 62 days), for the diary calendar: the day review and who wrote it, and how many entries have a review.
get
/api/coach/clients/{id}/review-history
CMP-09 — every review given, edited or withdrawn on one diary day (day and entries), newest first, with who did it.
delete
/api/coach/clients/{id}/food-logs/day-review/{date}
CMP-09 — withdraw a day review: removed from the client's diary, its chat card deleted (so it also leaves the AI context), kept in the review history. Only the coach who wrote it, or an admin. No push.
patch
/api/coach/clients/{id}/food-logs/day-review/{date}
Day-level counterpart to food-logs/:logId/review (REW-702) — coach feedback on a client's whole day of logging instead of one entry. Day and per-entry reviews coexist and both surface to the client. Saves coach_feedback/reviewed_by/reviewed_at on a food_day_reviews row keyed by (clientId, date) — re-reviewing the same day updates that row rather than creating a duplicate. Also sends a chat message + push to the client. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/health/trend/{metric}
Mobile Coach API — "More" drill-in on the Sleep/Steps/HRV cards from health-insights (#7). metric: sleep | steps | hrv | rhr | active_minutes | stand_hours | blood_pressure. window: week/month/year (blood_pressure also accepts 6months). Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/readiness-history
Mobile Coach API — "More" drill-in on the Readiness card from health-insights (#7). window: week/month/year. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/weight-history
Mobile Coach API — Weight card "More" opens the client's own Trends sheet in coach mode, which reads /weight/history + /measurements directly (not the #7 summary shape). Byte-for-byte mirror of GET /weight/history, including months/aggregate params. Requires coach_data_consent_at. Replaces the earlier custom-shaped weight-trend endpoint.
get
/api/coach/clients/{id}/health/measurements
Mobile Coach API — the other half of the Weight card's Trends sheet (dual-axis weight vs body measurements graph). Byte-for-byte mirror of GET /measurements. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/health/vibe-history
Mobile Coach API — "More" drill-in on the Vibe check card from health-insights (#7). Historical mood entries for charting, respecting each entry's own share_with_coach flag. window: week/month/year. Requires coach_data_consent_at.
get
/api/coach/clients/{id}/health/sleep/detail
Sleep sheet: quality stat cards, stage breakdown, weekly average, insight. Mirrors GET /health/sleep/detail/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/activity
Steps sheet: steps/active minutes/stand hours vs goals, floors, distance, calories, strain score. Mirrors GET /health/activity/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/more-metrics
HRV sheet: glucose/blood pressure/sleep quality/steps/RHR cards. Mirrors GET /health/more-metrics/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/readiness
Readiness sheet: today's score, band, and the 5-component breakdown (sleep/hrv/rhr/steps/strain). Distinct from readiness-history (#16), which is trend-only. Mirrors GET /health/readiness/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/blood_pressure/detail
Blood pressure card/sheet detail. Mirrors GET /health/blood_pressure/detail/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/metric-history
Raw per-reading history for one metric type (blood_pressure, rhr, heart_rate, hrv, glucose, steps, weight, body_fat, bmi), with source attribution. Mirrors GET /health/metric-history/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/diary
The wearable/device side of one day — sleep stages, activity, vitals, weight. NOT redundant with day-details (#17): that's what the client logged, this is what the device recorded. Mirrors GET /health/diary/me. Requires health_data_consent_at.
get
/api/coach/clients/{id}/health/capabilities
Which metrics have a connected data source for this client — use to distinguish "0 steps" from "no tracker connected" rather than hardcoding hasSource. Path alias for the already-live GET /health/capabilities/:userId (same service, same guard) added for /coach/clients/:id/health/... path consistency. Requires health_data_consent_at.
post
/api/coach/reward-tasks/{id}/didnt-happen
Mark this coach's booked reward call as didn't happen
get
/api/coach/reward-tasks
Reward prizes this coach owes, oldest claim first
post
/api/coach/reward-tasks/{id}/complete
Mark a reward prize delivered
Coach — Announcements
6
Coach — Assignments
11
Coach — Attendance
5
Coach — Group overview
2
Coach — Group surveys
3
Coach — Recordings
3
coach-scheduling
31
Communication
8
Cookbook
26
Diary
9
Digestive Symptoms
8
Error Logs
1
Favorite Meals
7
Feedback
1
Food Log
17
Health
35
Journey
11
Legal
1
Location
1
Lucille Bridge
42
Lucille Seed Admin
2
Marketing Attribution
1
Meal Notes
5
Meal Plans
18
Medical Overrides
3
Medical Overrides — Admin/Coach
3
notifications
4
pc
13
Progress & Tracking
13
Promotions
1
Questionnaire
6
referral
1
Rewards
34
Rewards (admin)
54
Rewards (QA)
12
Scheduled Meals
5
scheduling
22
Shenellebot
1
Subscribers
2
Subscription
14
Users
11
Water & Vitamins
17
Weight & Measurements
10
Coach
Copy
Copy Markdown
Copy Markdown
Copying…
Copied
Copy failed
Changes to CMP-09 — the reviewed days in a range (at most 62 days), for the diary calendar: the day review and who wrote it, and how many entries have a review.
get
/api/coach/clients/{id}/day-reviews
Oct 19, 2026
0c72870a5acb
Revision changes
info
endpoint added