Connect Oura Ring data to Sahha via the Oura Cloud API.

Overview

Connect Oura Ring data to Sahha via the Oura Cloud API. You register an app with Oura, add it to Sahha as an integration, then connect end users. The connection flow itself is shared across providers — see Integrations for the concepts and Connect a user for the full round-trip.

Status GA self sign-up
API slug oura
Device Ring
Connection Cloud OAuth
Live sync Pull (webhooks)
Backfill on connect 30 days

Before you start

Examples use the sandbox environment. Replace sandbox-api.sahha.ai with api.sahha.ai for production — see API Environments.

Oura uses self sign-up — no approval step is required to create an app.

Create an Oura account

The Oura Cloud Developer Portal uses the same credentials as your Oura account. If you don’t already have one, create it first.

Create your Oura account

  • Download the Oura app — App Store or Google Play
  • Open the app and tap Sign up
  • Register with your email address and create a password
  • Verify your email address to activate the account

You don't need an Oura Ring

The app’s onboarding is designed around setting up a physical Oura Ring, but you don’t need one to register a developer app — your account is created at sign-up. Work through the onboarding screens, and when the app asks you to pair a ring, skip that step or simply close the app. Your account stays active, and you can sign in to the developer portal with it.

With your Oura account created, you can sign in to the developer portal in the next step.


1. Register your Oura app

This gives Sahha the OAuth credentials it uses to request data on your users’ behalf.

Open the developer portal

Sign in to the Oura Cloud Developer Portal with your Oura account. The Your Applications page lists any apps you’ve already created. Click Create New to start a new one.

Fill in the application details

On the New Application form, complete the required fields. These details are shown to your end users during the OAuth consent flow, so use values that represent your product.

FieldWhat to enter
Display NameThe app name shown to users when they connect (e.g. My Application).
DescriptionA short description of your application.
Contact EmailAn email Oura can use to reach you about the app.
WebsiteYour product or company website.
Privacy PolicyURL of your privacy policy.
Terms of ServiceURL of your terms of service.

Add the Sahha redirect URI

Under Redirect URIs, add the Sahha OAuth callback URL exactly as shown. Oura fails the OAuth flow if this doesn’t match, so copy it carefully. Use + Add URI if you need more than one entry.

HTTP
https://sandbox-api.sahha.ai/api/v1/integration/oauth/oura/callback

Select scopes and create

Under Scopes, tick the data types you want Sahha to ingest. Available scopes: email, personal, daily, heartrate, workout, tag, session, spo2, ring_configuration, stress, heart_health.

Tick I agree to the Oura API Agreement, then click Create Application.

Copy your credentials

Oura opens the application’s detail page. Copy the Client Id and Client Secret — you’ll paste these into Sahha in the next step. You can return to this page any time from Your Applications → View Details, and use Reset Secret if you ever need to rotate the secret.

Up to 10 users by default

A newly created Oura app supports up to 10 connected users. To go beyond that, use Request more users on the application detail page — Oura requires at least one active user before they’ll approve the request.


2. Create the integration in Sahha

  1. Go to the Sahha Dashboard.
  2. Navigate to Direct integrations → Integrations in the sidebar.
  3. Click Add integration and select Oura as the provider.
  4. Under Add its details to Sahha, paste your Oura Client ID and Client secret.
  5. In Scopes, select the same scopes you enabled on your Oura app in step 1 — these are what Sahha requests when a user connects.
  6. Under Your app’s redirect URLs, add one or more URLs in your own app that Sahha may send users back to after they connect. The first is the default.
  7. Click Add integration.

Match your scopes

By default all provider-supported scopes are selected — not just the ones enabled on your app. Deselect any scopes your Oura app isn’t approved for so Sahha only requests scopes your app can actually access.

About redirect URLs

When you start the OAuth flow you may optionally pass a redirectUrl — it must match one of your redirect URLs exactly. If omitted, Sahha uses the default.


3. Connect a user

Start the OAuth flow with the user’s profile token. Oura’s slug is oura:

Start Oura connection
Shell
curl -X GET "https://sandbox-api.sahha.ai/api/v1/integration/profile/oauth/oura/authorize?redirectUrl=https://yourapp.com/integrations/callback" \
  -H "Authorization: profile {your-profile-token}"
Response
JSON
{
	"authorizationUrl": "https://cloud.ouraring.com/oauth/authorize?..."
}

Redirect the user to authorizationUrl to complete authorization. For the full round-trip and how to handle the redirect back to your app, see Connect a user.


What data you get

Every Oura log has the source oura and the deviceType ring. A workout the user added by hand has the recordingMethod MANUAL.

Activity and workouts

Oura dataLog typeData typeUnit
Daily stepsactivitysteps_totalcount
Daily active caloriesenergyactive_energy_burnedkcal
Daily total caloriesenergytotal_energy_burnedkcal
Daily basal caloriesenergybasal_energy_burnedkcal
Low, medium and high activity timeactivityactivity_low_intensity_duration_total, activity_medium_intensity_duration_total, activity_high_intensity_duration_totalminute
Sedentary timeactivityactivity_sedentary_duration_totalminute
Equivalent walking distanceactivitydistance_walking_runningm
Workoutexerciseexercise_session_{type}minute

Daily values span the user’s local day. Basal calories are the day’s total less its active calories, and the steps log carries the day’s active time in duration_seconds. The distance is Oura’s own estimate from all of the day’s activity, not a measured distance. A workout’s intensity (low, medium or high), calories and distance are in its additionalProperties. An Oura activity with no Sahha type of its own is exercise_session_other, with Oura’s name for it in activity_type.

Sleep

Oura dataLog typeData typeUnit
Time in bedsleepsleep_stage_in_bedminute
Deep, light, REM and awake timesleepsleep_stage_deep, sleep_stage_light, sleep_stage_rem, sleep_stage_awakeminute
Heart rate during sleepheartheart_ratebpm
HRV during sleepheartheart_rate_variability_rmssdms
Lowest heart rate during sleepheartresting_heart_ratebpm
Average breathing rate during sleepoxygenrespiratory_ratecount/minute

Sleep stages arrive as a timeline in 5-minute steps: one log per period in each stage. Heart rate and HRV arrive as Oura’s samples through the night, or as one average when Oura has no samples. Naps are included; Oura’s rest periods aren’t.

Vitals

Oura dataLog typeData typeUnit
Daily average SpO₂oxygenoxygen_saturationpercent
VO₂ maxoxygenvo2_maxml/kg/min

Percentages are sent as fractions: an SpO₂ of 97% is 0.97.

Not collected

Readiness, including temperature deviation, sleep scores, efficiency and latency, restless periods, daytime heart rate, tags, sessions and stress.


Sync and history

  • Live sync. Sahha subscribes your app to Oura’s webhooks for daily activity, SpO₂, sleep, VO₂ max and workouts, and checks the subscriptions twice a day. Oura notifies Sahha of new data, and Sahha fetches it.
  • Backfill. Sahha backfills the last 30 days when a user connects, and again whenever they reconnect.
  • Time zones. Daily values span the user’s local day, except daily SpO₂, which spans the day in UTC.
  • Deletions. Data a user deletes in Oura stays in Sahha.

Oura-specific notes

  • Redirect URI must match. Oura fails the OAuth flow unless the Sahha callback URL is registered in your app’s allowed redirect URIs (see Add the Sahha redirect URI).
  • Subscriptions are automatic. Sahha manages Oura webhook subscriptions for you — there’s no separate webhook step to configure.

For data freshness, the connection lifecycle, and disconnecting a user, see Managing connections on the Integrations page.

Support

Need help? Contact support@sahha.ai or join the Slack Community.

Docs