Skip to main content

Overview

Summary​

get

/v2/summary/sleep/{user_id}

Request fields and example

No parameters

Get Sleep stream
1
2
3
4
curl --request GET \
     --url https://api.tryvital.io/v2/summary/sleep/{user_id}?start_date="2022-05-01"&end_date="2022-06-01" \
     --header 'Accept: application/json'
     --header 'x-vital-api-key: <API_KEY>'
Response fields and example

No parameters

Response
1

Stream​

get

/v2/timeseries/sleep/{sleep_id}/stream

Request fields and example

No parameters

Get Sleep stream
1
2
3
4
curl --request GET \
     --url https://api.tryvital.io/v2/summary/sleep/{sleep_id}/stream \
     --header 'Accept: application/json'
     --header 'x-vital-api-key: <API_KEY>'
Response fields and example

No parameters

Response
1

Raw​

get

/v2/summary/sleep/{user_id}/raw

Request fields and example

No parameters

Get raw sleep data
1
2
3
4
curl --request GET \
     --url https://api.tryvital.io/v2/summary/sleep/{user_id}/raw \
     --header 'Accept: application/json'
     --header 'x-vital-api-key: <API_KEY>'
Response fields and example

No parameters

Response
1