Sleep
Measurements related to the length of time spent in various sleep cycles, as well as number of times woken during the night.
Example
GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}/sleep.json?access_token={ORGANIZATION_ACCESS_TOKEN}
GET https://api.validic.com/v1/organizations/5176906c6deddac02c000001/users/51 552cd7fded0807c4000017/sleep.json?access_token=e7ba1f04e88f25d399a91c8cbc d72300e01309e96b7725e40b49cd1effaa5deb 200 { "summary": { ... }, "sleep": [ { "_id": "51552cddfded0807c400008b", "timestamp": "2013-03-10T07:12:16+00:00", "utc_offset": "+00:00", "awake": 34, "deep": 234, "light": 94, "rem": 115, "times_woken": 4, "total_sleep": 477, "source": "sample_app", "source_name": "Sample App", "last_updated": "2013-03-10T07:12:16+00:00" } ] }
Params
Field
Type
Description
timestamp
String
Timestamp for the measurement set
utc_offset
String
Timezone information for the measurement set
total_sleep
Double
The value of the measured quantity in seconds
awake
Double
The value of the measured quantity in seconds
deep
Double
The value of the measured quantity in seconds
light
Double
The value of the measured quantity in seconds
rem
Double
The value of the measured quantity in seconds
times_woken
Double
The value of the measured quantity
source
String
The short name of the application that recorded the activity
source_name
String
The display name of the application that recorded the activity
last_updated
String
Date and time when the measurement set was last updated
_id
String
Unique identifier of the sleep data