Coach

Get detailed client view with macros, logs, notes

get/api/coach/clients/{id}

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/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Headers

x-timezonestring required

Response

unknown required

Example response

{
  "success": true,
  "canViewClientData": true,
  "client": {
    "id": 5,
    "name": "Jane Doe",
    "email": "jane@example.com",
    "macros": {
      "calories": 1500,
      "protein": 120,
      "carbs": 150,
      "fat": 50
    },
    "recentLogs": [
      {
        "date": "2026-02-19",
        "calories": 1420,
        "protein": 110,
        "logCount": 4
      }
    ],
    "notes": [
      {
        "id": 1,
        "content": "Great progress this week!",
        "created_at": "2026-02-17T10:00:00.000Z"
      }
    ],
    "profile": {
      "surgery_type": "gastric_sleeve",
      "surgery_date": "2025-06-01"
    }
  }
}

Changes

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