Using Oura Ring's API and Personal Access Tokens and Momentum's URL-based Metrics, you can display your Oura ring data within Momentum.
Personal Access Tokens
Oura offers Personal Access Tokens for Authentication. Personal access tokens (PATs) may be used for retrieving your own personal data from the Oura Cloud API.
Create A Personal Access Token
- Navigate to the Personal Access Tokens page
- In the upper-right corner of the page click the "Create A New Personal Access Token" Button
- Enter a unique note for the new Personal Access Token you are about to generate
- This note is just a reminder for yourself about what the token is being used for
- Click "Create Personal Access Token" to submit the form and create your new Personal Access Token
- You should now have a new access token listed on the Personal Access Tokens page
Be sure to copy this new token as you will not be able to view the token once navigating away. Use the convenient "Copy" button to copy the token value into your clipboard.
Using A Personal Access Token
Once you have acquired a Personal Access Token, the token can be used to access the Oura API. There are two ways of providing the Personal Access Token, HTTP header and URL.
For the purpose of creating a URL-based Metrics in Momentum, we'll be using the URL parameter.
URL parameter: Add access_token
parameter to the API call, for example:
https://api.ouraring.com/v1/userinfo?access_token={Your Access Token}
- For the different daily summaries and data types (e.g. Sleep, Activity, Readiness), check out Oura's API documentation.
Then simply paste the personal URL into your the URL section of Momentum's Metrics, select the Value you want to track from the list and click Save.