Get Sleep Summary
Changed onReturns daily sleep metrics.
Request
- Base URL: https://api.openwearables.io (the document declares no server; this is the origin it was published from)
- URL: https://api.openwearables.io/api/v1/users/{user_id}/summaries/sleep
- Auth: OAuth 2 (password, token URL /api/v1/auth/login)
Path parameters
Query parameters
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
Headers
Response
Successful Response
Example response
{
"data": [
{
"source": {
"provider": "apple",
"source": "Connect",
"device": "iPhone15,2",
"device_id": "R9ZW30ABC12"
},
"duration_minutes": 450,
"total_duration_minutes": 480,
"time_in_bed_minutes": 480,
"efficiency_percent": 89.5,
"nap_count": 1,
"nap_duration_minutes": 30,
"sessions": [
{
"duration_minutes": 420
}
]
}
],
"pagination": {
"next_cursor": "eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0cyI6MTcwNDA2NzIwMH0",
"total_count": 150
}
}Changes
- info
added the optional property
///to the response with the status
- info
- warning
added the new
bike_computerenum value to the////response property for the response status - warning
added the new
bp_monitorenum value to the////response property for the response status - warning
added the new
chest_strapenum value to the////response property for the response status - warning
added the new
fitness_machineenum value to the////response property for the response status - warning
added the new
glassesenum value to the////response property for the response status - warning
added the new
glucose_meterenum value to the////response property for the response status - warning
added the new
head_mountedenum value to the////response property for the response status - warning
added the new
headphonesenum value to the////response property for the response status - warning
added the new
hr_sensorenum value to the////response property for the response status - warning
added the new
sleep_monitorenum value to the////response property for the response status - warning
added the new
smart_displayenum value to the////response property for the response status - warning
added the new
tabletenum value to the////response property for the response status - warning
added the new
thermometerenum value to the////response property for the response status
- warning