Skip to main content
Get Sleep

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sleep_id
string
required

Sleep ID

Query Parameters

include_stages
boolean

Include stages

include_samples
boolean

Include samples

Response

OK

modified_at
string<date-time>
required

Modified at

start_at_timestamp
string<date-time>
required

Record start time

duration
integer<int64>

Record duration

end_at_timestamp
string<date-time>

Record end time

input_method
enum<string>

Data input method

Available options:
unknown,
manual,
device
metrics
object

Metrics output

provider_slug
string

Provider slugs

Examples:

"strava"

"omron_eu"

"omron_us"

"health_connect"

"fitbit"

"garmin"

"huawei"

"dexcom"

"whoop"

"withings"

"suunto"

"google_health"

"apple"

"freestyle_libre"

"oura"

"polar"

"coros"

"ultrahuman"

"samsung_health_data"

"luna"

record_ids
string<uuid>[] | null

Unique identifier for a record.

samples
object
score
integer<int64>
sleep_date
string<date>

Calendar date for which the sleep is attributed

Example:

"2006-01-02"

sleep_id
string
source
object
stages
object[] | null
user_time_offset_minutes
integer<int32>

User time offset in minutes