---
title: "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."
method: GET
path: "/api/coach/clients/{id}/diary/trend/{metric}"
tags: ["Coach"]
---

# 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/trend/{metric}`

## 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}/diary/trend/{metric}`
- Auth: HTTP bearer

## Path parameters

- `id` number, required
- `metric` string, required

## Query parameters

- `window` 'month' | '6months' | 'year'
- `date` string

## Response `200`

## Changes

- **2026-10-27** `c21de10cd239`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/coach/clients/:id/diary/trend/:metric/get.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
