---
title: "Sleep duration trend for the current user. week=7 nightly hours, month=30 nightly hours, year=12 monthly-avg hours. Points are sparse — missing days/months are omitted. Goal field carries the active sleep goal in hours. Premium-only."
method: GET
path: "/api/health/sleep/trend/me"
tags: ["Health"]
---

# Sleep duration trend for the current user. week=7 nightly hours, month=30 nightly hours, year=12 monthly-avg hours. Points are sparse — missing days/months are omitted. Goal field carries the active sleep goal in hours. Premium-only.

`GET /api/health/sleep/trend/me`

## 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/health/sleep/trend/me`
- Auth: HTTP bearer

## Query parameters

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

## Response `200`

## Changes

- **2026-10-27** `5231b7914987`: 1 info
  - added the new enum value `6months` to the `query` request parameter `window`

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/health/sleep/trend/me/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)
