Get sleep metrics time series data for the past n days. Returns daily sleep metrics including duration, efficiency, and quality scores.
| Parameter | Type | Required | Description |
|---|---|---|---|
| authorization | string | Yes | API authorization token (Bearer token) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| user_id | string | Yes | The ID of the patient |
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | integer | No | Number of past days to fetch data for (default: 7) |
| Status | Description | Content Type |
|---|---|---|
| 200 | Successful Response | application/json |
| 422 | Validation Error | application/json |