---
title: "Sandbox - Multiple Sleep Time Documents"
method: GET
path: "/v2/sandbox/usercollection/sleep_time"
tags: ["Sandbox Routes"]
---

# Sandbox - Multiple Sleep Time Documents

`GET /v2/sandbox/usercollection/sleep_time`

## Query parameters

- `start_date` union
  - string, date-time
  - string, date
- `end_date` union
  - string, date-time
  - string, date
- `next_token` string, nullable

## Response `200`

Successful Response

- union
  - MultiDocumentResponsePublicSleepTime
    - `data` PublicSleepTime[], required
      - `id` string, required — Unique identifier of the object.
      - `day` string, required
      - `optimal_bedtime` PublicSleepTimeWindow — Object defining sleep time window
        - `day_tz` integer, required — Timezone offset in second from GMT of the day
        - `end_offset` integer, required — End offset from midnight in second
        - `start_offset` integer, required — Start offset from midnight in second
      - `recommendation` 'improve_efficiency' | 'earlier_bedtime' | 'later_bedtime' | 'earlier_wake_up_time' | 'later_wake_up_time' | 'follow_optimal_bedtime' — Possible public SleepTime recommendation.
      - `status` 'not_enough_nights' | 'not_enough_recent_nights' | 'bad_sleep_quality' | 'only_recommended_found' | 'optimal_found' — Possible public SleepTime status.
    - `next_token` string, nullable, required
  - MultiDocumentResponseDict
    - `data` object[], required
    - `next_token` string, nullable, required

## Other responses

- `400` — Client Exception
- `401` — Unauthorized access exception. Usually means the access token is expired, malformed or revoked.
- `403` — Access forbidden. Usually means the user's subscription to Oura has expired and their data is not available via the API.
- `422` — Validation Error
- `429` — Request Rate Limit Exceeded.

---

[API](https://skmtc.dev/ouraring/apis/oura-api-documentation.md) · [All operations](https://skmtc.dev/ouraring/apis/oura-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ouraring/oura-api-documentation/revisions/8b8ae3b61eda/schema)
