Your users connect a provider account once; Sahha syncs their data continuously — server-side, no SDK to ship.

Introduction

Integrations pull health data straight from a provider’s cloud — Garmin, Oura, WHOOP — into Sahha, with no SDK on the device. The user connects their provider account once; Sahha syncs their data continuously onto the same profile. It’s the third way to get data into Sahha, alongside the SDK and REST API.


Supported providers

Provider Slug Device Connection Status
Garmin garmin Watch Cloud OAuth GA Garmin approval required
Oura oura Ring Cloud OAuth GA self sign-up
WHOOP whoop Band Cloud OAuth GA self sign-up
Samsung Health — Phone / watch On-device SDK Coming soon collected via the SDK

The slug is the value you pass as {provider} throughout the API (see Connect a user).

Need another provider?

Request one in the Slack Community — tell us the provider and the data you need. Demand drives our priority.


Data coverage

What you get depends on the provider, the user’s device, and the scopes you enable. Sahha normalizes every provider into the same data logs, biomarkers, scores and archetypes — so once data is in, you consume it the same way regardless of source.

The matrix below is indicative. See each provider’s page for the authoritative list.

Data GarminOuraWHOOP
Steps & activity ● ● ●
Sleep & sleep stages ● ● ●
Heart rate ● ● ●
Heart rate variability ● ● ●
Blood oxygen (SpO₂) ● ● ●
Respiratory rate ● ● ●
Body temperature — — ●
Workouts & exercise ● ● ●
VO₂ max / fitness ● ● —
Body composition ● — ●
Menstrual cycle — — —
Blood pressure ● — —
Demographics — — —

● available · — not provided. Exact availability depends on the user's device and the scopes you enable — see each provider's page.

Scores are computed from whatever you collect

Sahha Scores (Sleep, Activity, Readiness, Wellbeing, Mental) are derived from the underlying data — so a connected provider contributes to scores automatically, even if it doesn’t expose a matching raw metric. More data sources generally mean more complete scores.

Where it shows up

A connected provider’s data arrives as data logs, exactly like data from the SDK, and you read it the same way — through the REST API or Webhooks. Each log’s source is the provider’s slug, such as garmin, so you can tell integration data from SDK data, and its deviceType is the kind of device rather than a model: watch for Garmin, ring for Oura and strap for WHOOP. Each provider’s page lists the data types it sends.


Data freshness & history

Most data reaches Sahha by webhook: the provider notifies Sahha as new data is recorded, so it usually lands within minutes of the user’s device syncing to the provider’s cloud. A few kinds of data have no webhook, so Sahha fetches them on a schedule instead: WHOOP’s cycles (day strain and steps) twice a day, and its body measurements once a day.

When a user connects — and again whenever they reconnect — Sahha backfills the last 30 days of available history, then syncs continuously from then on.

Provider Live sync Backfill on connect
Garmin Push (webhooks) 30 days — Requires the user to grant Garmin's historical-data permission
Oura Pull (webhooks) 30 days
WHOOP Pull (webhooks), plus scheduled polls 30 days

Latency depends on the device

End-to-end freshness is bounded by when the user’s device syncs to the provider — e.g. an Oura ring that syncs once each morning delivers the night’s data at that point, not in real time. Sahha forwards it within minutes of receiving it.

Garmin historical permission

If a Garmin user does not grant historical-data permission during authorization, the 30-day backfill is skipped and only data recorded after connection flows in. Going-forward sync is unaffected, and if they grant the permission later in Garmin Connect, Sahha backfills then.

Data a user deletes in their provider account stays in Sahha: deletions at the provider aren’t applied to data Sahha already has.


How it works

Integrations use three concepts. The same vocabulary appears in the dashboard and the API:

TermWhat it is
ProviderA data source you can connect — Garmin, Oura, WHOOP.
IntegrationYour configured app for a provider — the OAuth credentials and scopes you set up once in the Sahha Dashboard.
ConnectionOne end-user’s authorized link to a provider, created when they complete the OAuth flow.

Setting up a provider is three steps:

  1. Create an app with the provider — register in the provider’s developer console to obtain OAuth credentials.
  2. Create an integration in Sahha — add those credentials to your project in the Sahha Dashboard.
  3. Connect an end user — start the OAuth flow for a user through the Sahha API. Once they authorize, Sahha begins syncing automatically.

Each provider’s page, linked from Supported providers, has the exact console steps and scopes.


Connect a user

Once an integration is configured, you start the connection flow for each end user through the Sahha API.

Before you start

You need:

  • A configured integration for the provider (the three steps above).
  • A profile token for the end user — this scopes the connection to that specific user. Your backend can get one for an existing profile with your account token, through POST /api/v1/oauth/profile/token. It must be an unexpired profile token, not a refresh token, from the environment you call: a sandbox token for sandbox-api.sahha.ai, a production token for api.sahha.ai. See Authentication for how tokens work and Getting Started to create a profile.
  • The end user to have an account with the provider (e.g. a Garmin Connect or Oura account).

Examples use the sandbox environment (sandbox-api.sahha.ai). Swap to api.sahha.ai for production — see Environments.

Option A — Sahha API

The connection is a standard OAuth redirect round-trip:

  1. You call Sahha’s authorize endpoint with the user’s profile token. Sahha returns an authorizationUrl.
  2. You send the user’s browser to that authorizationUrl (the provider’s consent screen).
  3. The user approves access on the provider’s site.
  4. The provider redirects back to Sahha’s callback; Sahha stores the connection and starts syncing.
  5. Sahha redirects the user to your redirectUrl so your app can show a success state.
Start a connection
Shell
curl -X GET "https://sandbox-api.sahha.ai/api/v1/integration/profile/oauth/{provider}/authorize?redirectUrl=https://yourapp.com/integrations/callback" \
  -H "Authorization: profile {your-profile-token}"
Response
JSON
{
	"authorizationUrl": "https://connect.garmin.com/oauth2Confirm?..."
}

Replace {provider} with the provider’s slug from the Supported providers table (e.g. garmin).

The optional redirectUrl must exactly match one of the integration’s redirect URLs (Your app’s redirect URLs in the dashboard); if omitted, Sahha uses the first. It can be a web address or your app’s own URL scheme, such as myapp://integrations/callback, but can’t include a fragment (#…).

Once a user is connected, you read their data the same way as any other Sahha data — via the REST API or Webhooks. There’s nothing integration-specific about consuming it.

Mobile apps

In an iOS or Android app, open authorizationUrl in a system browser session — ASWebAuthenticationSession on iOS, Chrome Custom Tabs on Android — rather than an embedded web view. Pass your app’s own URL scheme as the redirectUrl, and add it to the integration’s redirect URLs, so the session hands control back to your app when the flow finishes.

If the request fails

The authorize request returns a JSON error instead of an authorizationUrl when it can’t start the flow:

StatusoriginCause
400redirectUrlredirectUrl isn’t one of the integration’s redirect URLs.
400externalIdThe profile token has no externalId.
401authorizationThe Authorization header is missing or malformed, or the token isn’t an unexpired profile token for this environment.
404resourceYour account has no integration for this provider.
Error response
JSON
{
	"title": "Bad Request",
	"statusCode": 400,
	"location": "oauth",
	"errors": [
		{
			"origin": "redirectUrl",
			"errors": ["redirect URL not in whitelist"]
		}
	]
}

Handling the redirect

After the OAuth flow, Sahha redirects the user to your redirectUrl with query parameters describing the outcome — handle them however your app needs. Any query string already in your redirectUrl is kept.

Success

ParameterReason
status=successAuthorization completed and the connection was created.

Errors

Error redirects include status=error and an error message. This covers a user denying access on the provider’s consent screen, which is returned as provider denied authorization:

error valueReason
provider denied authorization: <provider_error>The user denied consent, or the provider returned an error. <provider_error> is the provider’s own value (e.g. access_denied).
authorization code is missingThe provider redirected back without an authorization code.
callback provider does not match the authorizationThe provider in the callback isn’t the one the flow was started for.
integration not foundThe integration was deleted while the user was authorizing.
provider not supportedThe provider is not supported.
failed to process integration credentialsThe stored client credentials could not be processed.
failed to exchange authorization codeExchanging the authorization code for a token failed.
failed to resolve provider user identityThe provider wouldn’t say whose account was authorized.
failed to establish connectionStoring the connection failed.

Parameter values are URL-encoded — e.g. error=authorization code is missing comes back as error=authorization+code+is+missing.

The user has 10 minutes to authorize after the authorizationUrl is generated; after that the session expires and they’ll need a fresh authorizationUrl to try again. If the state parameter is missing, expired, or already used, the callback responds with HTTP 400 Bad Request instead of redirecting — there’s no trusted redirectUrl to return to in that case.

Option B — Sahha SDK

Coming soon

SDK support for Integrations is in development. The connection flow will be initiated from the native SDK; the API above is available today.

Show a connect screen

To list the providers a user can connect, and whether they already have, call GET /api/v1/integration/profile/integration with their profile token. It returns every integration on your account, newest first, with this user’s connection to each — enough to build a connect screen without hard-coding providers.

List integrations for a user
Shell
curl -X GET "https://sandbox-api.sahha.ai/api/v1/integration/profile/integration" \
  -H "Authorization: profile {your-profile-token}"
Response
JSON
[
	{
		"providerKey": "whoop",
		"providerName": "WHOOP",
		"icon": "data:image/svg+xml;base64,PHN2Zy4uLg==",
		"connectionStatus": "none",
		"connectionId": null
	},
	{
		"providerKey": "oura",
		"providerName": "Oura",
		"icon": "data:image/svg+xml;base64,PHN2Zy4uLg==",
		"connectionStatus": "connected",
		"connectionId": "3f6c1b2a-8d4e-4f5a-9b7c-2e1d0a9f8c7b"
	}
]
FieldWhat it is
providerKeyThe provider’s slug, for the authorize request.
providerNameThe provider’s display name.
iconThe provider’s logo as an SVG data URI, ready for an <img src>. Empty if the provider has none.
connectionStatusnone if this user hasn’t connected the provider, otherwise their connection status.
connectionIdThe user’s connection, for deleting it. null when connectionStatus is none.

An empty array means your account has no integrations, so your app can hide its connect screen.


Managing connections

You can manage connections from your app through the API, or see and manage an integration’s connections on its page in the Sahha Dashboard, under Direct integrations → Integrations.

Connection status

StatusWhat it means
connectedSahha is syncing the user’s data.
expiredSahha can no longer refresh the user’s access, for example because they removed your app in their provider account.
revokedThe provider told Sahha the user withdrew access. Sahha stops forwarding their data.

There’s no webhook for a status change. Check the user’s status when they open your connect screen, or list their connections.

Reconnecting a user

To reconnect a user whose connection is expired or revoked, start the connection flow again for the same provider. Sahha revives their existing connection and points it at the provider account they authorize, so there’s no need to delete it first. A reconnect backfills the last 30 days again.

Listing a user’s connections

GET /api/v1/integration/profile/connection returns the user’s connections, most recent first:

List a user's connections
Shell
curl -X GET "https://sandbox-api.sahha.ai/api/v1/integration/profile/connection" \
  -H "Authorization: profile {your-profile-token}"
Response
JSON
[
	{
		"id": "3f6c1b2a-8d4e-4f5a-9b7c-2e1d0a9f8c7b",
		"integrationId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
		"accountId": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
		"profileId": "7e6d5c4b-3a2f-4e1d-9c8b-7a6f5e4d3c2b",
		"providerKey": "oura",
		"providerUserId": "8DF5A2C3",
		"externalId": "user-123",
		"status": "connected",
		"createdAtUtc": "2026-11-20T03:14:15Z",
		"updatedAtUtc": "2026-11-20T03:14:15Z"
	}
]

providerUserId is the user’s ID at the provider, and externalId is the profile’s external ID in Sahha.

Deleting a connection

Deleting a connection revokes a single end-user’s link to a provider — Sahha stops ingesting their data immediately, and withdraws its access at the provider unless another of your users is connected to the same provider account. A connection can be deleted in three ways:

  • Your app, with the user’s profile token. It returns 204, or 404 if the connection isn’t the user’s.
  • You, from the integration’s page in the Sahha Dashboard, under Direct integrations → Integrations.
  • The user, from their own provider account settings. Their connection then becomes expired or revoked (see Connection status).
Delete a connection
Shell
curl -X DELETE "https://sandbox-api.sahha.ai/api/v1/integration/profile/connection/{connectionId}" \
  -H "Authorization: profile {your-profile-token}"

If the user connects the provider again afterwards, Sahha creates a new connection.

Deleting an integration

Deleting an integration removes your configured app for a provider — its OAuth credentials and scopes. Do this from the Sahha Dashboard under Direct integrations → Integrations.

This deletes every connection

Deleting an integration deletes every connection created under it, so their data stops syncing. If you recreate an integration with the same credentials, those users will need to reauthenticate to reconnect.

FAQ

A user connected but no data is arriving +

A successful connection can still fail to deliver data for a few reasons:

  • The connection isn’t connected. List the user’s connections and check its status — an expired or revoked connection needs the user to reconnect.
  • The user denied certain scopes. They approved the connection but declined specific data permissions during authorization, so those categories never sync.
  • The webhook URL is misconfigured. Check that the webhook URL from your Sahha integration is set correctly in the provider’s developer console — see the provider’s page.
  • A push/pull provider isn’t set to push. Providers that offer both push and pull delivery (e.g. Garmin) must have their endpoints set to push — pull-mode endpoints deliver nothing.
  • Rate limiting is throttling delivery. Hitting the provider’s rate limits for your app can delay or drop data; request higher limits from the provider if you need them. (Sahha will add alerts for excessive rate limiting in a future release.)
The OAuth flow fails immediately +

The most common cause is a redirect URL mismatch. Make sure the Sahha callback URL is registered in your provider app’s allowed redirect URIs, and that any redirectUrl you pass exactly matches one of your integration’s redirect URLs. If the authorize request itself returns an error, see If the request fails.

How far back does data go when a user first connects? +

Sahha backfills the last 30 days when a user connects, and again whenever they reconnect. Garmin users must also grant Garmin’s historical-data permission. New data flows continuously from then on.

How do I know when a user needs to reconnect? +

Their connection’s status changes to expired or revoked. Sahha doesn’t send a webhook for this, so check the status when the user opens your connect screen, through List integrations or their connections, and start the connection flow again if needed.

What happens to data a user deletes in their provider account? +

It stays in Sahha. Deletions at the provider aren’t applied to data Sahha already has.

Support

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

Docs