API reference

Sleep

Retrieve user sleep data
GET
Request
Response
Query Parameters
from
String
required
The start date of the query based on the user timezone; inclusive
include_samples
Boolean
optional
Include samples
include_stages
Boolean
optional
Include stages.
provider
Array
optional
Allowed values:health_connect; fitbit; garmin; huawei; whoop; suunto; apple; oura; polar
timezone
String
optional
The timezone to use for responses, it would convert the internal timestamp from UTC to this timezone; if you leave empty it would use the user's timezone Example: America/New_York
to
String
required
The end date of the query based on the user timezone; non-inclusive
Header Parameters
Authorization
String
required
Provide your bearer token in the Authorization header when making requests to protected resources.
Curl
Responses
200