Coaching Mentor — API Gateway

Backend API for Loveable frontend. All endpoints are prefixed /api/v1/.

Checking status…
https://coach.cosmoes.studio/api/v1/

Session Engine Layer C

MethodPathDescription
POST/chatSingle-turn conversation — returns AI directive
POST/live_sentenceStream a sentence — triggers auto-advice when threshold met
POST/coach_advice_nowForce-request an AI directive immediately
GET/session/{id}/live_statusLive dashboard: phase, progress score, behavioral signals
GET/session/{id}/transcriptFull event transcript for a session
GET/session/{id}/reviewMid/post-session overview snapshot
GET/session/{id}/analyticsFull post-session analytics report
GET/tokenWebSocket auth token (for future real-time stream)
GET/healthService health

Audio Transcription Layer D

MethodPathDescription
POST/audio/transcribeFull audio file → transcript + auto-forward to session
POST/audio/chunkStreaming audio chunk → partial transcript
GET/audio/session/{id}/transcriptAssembled transcript for a transcription session
DELETE/audio/session/{id}Clear a transcription session

Personalization & Settings Layer E

MethodPathDescription
GET/settings/coach/{id}/profileFetch coach preferences & settings
PUT/settings/coach/{id}/profileUpdate coach preferences
POST/settings/coacheeRegister a coachee profile
POST/settings/personalize/chatNatural-language personalization chat (AI extracts settings)
GET/settings/personalize/{id}/historyPersonalization chat history for a coach
POST/settings/sessionRegister a session for tracking
POST/settings/orgCreate an organization
PUT/settings/org/{id}/constraintsSet org-wide AI constraints
GET/settings/analytics/session/{id}Stored analytics for a session
GET/settings/coach/{id}/learnedAI-inferred preferences from usage behavior

Coach Advisor Agent Layer G

MethodPathDescription
POST/advisor/chatChat with the AI coach supervisor (prep, review, guidance)
POST/advisor/preparePre-session briefing for a coach
GET/advisor/review/{session_id}Post-session AI review and insights
GET/advisor/performance/{coach_id}Coach performance analysis over time
POST/advisor/notesSave a note
GET/advisor/notes/{coach_id}List notes for a coach
DELETE/advisor/conversation/{coach_id}Clear conversation history