---
title: "Gets an existing sleep log"
method: GET
path: "/patients/{patient_id}/sleep/{patient_sleep_id}"
tags: ["sleep"]
---

# Gets an existing sleep log

`GET /patients/{patient_id}/sleep/{patient_sleep_id}`

## Path parameters

- `patient_id` integer, required
- `patient_sleep_id` integer, required

## Response `200`

successful operation

- PatientSleepResponse
  - `id` integer, required
  - `note` string, nullable — note that can be added to provide additional description Max 1024 char
  - `sleep_end_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
  - `sleep_group_start_date_time` string — datetime in format YYYY-MM-DD HH:MM:SS
  - `sleep_start_date_time` string, required — datetime in format YYYY-MM-DD HH:MM:SS
  - `sleep_type` 'inBed' | 'asleepUnspecified' | 'awake' | 'asleepCore' | 'asleepDeep' | 'asleepREM', required
  - `source` string, nullable — source of sleep data
  - `source_id` string, nullable — id of sleep from source

## Other responses

- `404` — patient or sleep entry not found

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/a61b77b30e63?raw)
