I would like time series samples to display my Oura users HRV

SufficientVicuna8 months ago

I want to display a graph of my users HRV through out the night, but it seems that only summaries are provided in the sleep payload. I also see samples being returned but it is always []. Is this something that Terra API can retrieve from Oura or not?

terra

Matthewadmin8 months ago

"Hey there. It seems that you have your samples scope disabled. Please go the the dashboard and navigate to Dashboard > Connections > Configure, then enable the samples scope. You should now be able to get samples with your webhook payload!

Also. If you want the HRV samples in the response payload when you make a call to /sleep via our REST API, you can use the query parameter with_samples=true to get samples.


SufficientVicuna8 months ago

That has fixed it thank you. I was making a HTTP request, should I also enable the scope?


terra

Matthewadmin8 months ago

If you wish to also receive all kinds of time series samples in the payloads sent to your webhook, you should enable the samples scope. Enabling this scope also means you will receive samples in your REST requests.


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.