Sleep
Raw
Get Daily sleep for user_id
GET
/v2/summary/sleep/{user_id}/raw
x-vital-api-key*
curl --request GET \
--url {{BASE_URL}}/v2/summary/sleep/{user_id}/raw \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"sleep": [
{
"timestamp": "2022-08-04T12:42:44.853437+00:00",
"data": {
"data": "...provider_specific_data"
},
"provider_id": "acddfb23-a2fd-417b-82ac-37c060074bef",
"user_id": "8479b190-fff6-44cf-84f2-0e906457b343",
"source_id": 1,
"priority_id": 1
}
]
}
Path Parameters
user_idrequired
string
Query Parameters
provider
Default: ""string
Provider oura/strava etc
start_daterequired
string
Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
end_date
string
Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
Response
200 - application/json
sleeprequired
object[]
curl --request GET \
--url {{BASE_URL}}/v2/summary/sleep/{user_id}/raw \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"sleep": [
{
"timestamp": "2022-08-04T12:42:44.853437+00:00",
"data": {
"data": "...provider_specific_data"
},
"provider_id": "acddfb23-a2fd-417b-82ac-37c060074bef",
"user_id": "8479b190-fff6-44cf-84f2-0e906457b343",
"source_id": 1,
"priority_id": 1
}
]
}