Coach Portal

Get the coach's most recently completed session

MED-781: Returns the single most recently completed session for the coach (attendance marked AND scheduled_end < NOW()), or null if none exists. Drives the "Session Report Ready" Needs Attention card on the coach home dashboard.

Retirement rule lives on the client: the card stays visible until a newer session is completed (which produces a newer scheduled_end and supersedes the previous one). Opening the report does NOT retire the card.

get/api/coach/sessions/most-recent-completed

Request

  • Base URL
    https://api.production.yourmedley.com
  • Auth
    HTTP bearer

Response

Most recently completed session, or null

idstring uuid
titlestring
session_numberinteger nullable
scheduled_startstring date-time
scheduled_endstring date-time
attendance_marked_atstring date-time nullable
group_idstring uuid
group_namestring
cohort_idstring uuid
cohort_namestring
topic_namestring nullable

Topic display name (topic_override falls back to topics.name)

Changes

No recorded changes to this operation across all 1 revision of this API.