Coach

List active clients with paginated daily summary

get/api/coach/clients

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/coach/clients
  • Auth
    HTTP bearer

Query parameters

pagestring

Page number (1-indexed). Default 1.

limitstring

Page size (1-100). Default 50.

searchstring

Match against id, email, first/last name.

program_statusstring

pending | active | completed | dropped

is_enrolledstring

true | false

logged_todaystring

true → logged at least one non-planned food entry today; false → none.

has_weightstring

true → has at least one weight tracking entry; false → none.

Headers

x-timezonestring required

Response

unknown required

Example response

{
  "success": true,
  "clients": [
    {
      "id": 5,
      "email": "jane@example.com",
      "firstName": "Jane",
      "lastName": "Doe",
      "todayFoodLogs": 4,
      "latestWeight": 162.4,
      "latestVibe": "🙂"
    }
  ],
  "total": 84,
  "page": 1,
  "limit": 50
}

Changes

No recorded changes to this operation across all 34 revisions of this API.