I would like time series samples to display my Oura users HRV
AllSufficientVicuna26 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?
Matthewadmin26 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.
SufficientVicuna26 months ago
That has fixed it thank you. I was making a HTTP request, should I also enable the scope?
Matthewadmin26 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.