Skip to main content
List Sleeps

Authorizations

Authorization
string
header
required

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

Query Parameters

from_date
string<date>

Start time of the query range in user's local timezone according to the provider, inclusive

Example:

"2006-01-02"

to_date
string<date>

End time of the query range in user's local timezone according to the provider, inclusive

Example:

"2006-01-02"

providers
enum<string>[]

Providers

Available options:
strava,
health_connect,
fitbit,
garmin,
huawei,
dexcom,
whoop,
withings,
suunto,
google_health,
apple,
freestyle_libre,
oura,
polar,
coros,
ultrahuman,
samsung_health_data,
luna,
map_my_fitness,
application
include_stages
boolean

Include stages

include_samples
boolean

Include samples

Response

OK

sleeps
object[] | null
required
from_date
string<date>

Calendar date in user's local timezone according to the provider

Example:

"2006-01-02"

to_date
string<date>

Calendar date in user's local timezone according to the provider

Example:

"2006-01-02"