Add health data collection to your mobile or cross-platform app. Native libraries available for iOS, Android, Flutter, React Native, Expo, and Ionic Capacitor.

Introduction

The Sahha SDK connects your app to the health data stored on your users' devices. On iOS, health and fitness data lives in Apple Health, powered by Apple's HealthKit framework. On Android, the equivalent is Health Connect, Google's unified health data layer. The SDK handles the connection to these platform health stores, background data collection, and syncing everything to the Sahha API — so you can focus on building your product.


Integrate the SDK

Follow these steps to integrate the Sahha SDK into your project.

  1. Install the SDK — Prepare your project, add the Sahha library, and complete platform setup
  2. Configure Settings — Set your environment and notification preferences
  3. Register and Authenticate Profiles — Create user profiles and connect them to Sahha
  4. Enable Data Collection — Choose sensors, request health data permissions, and start collecting

Data Access

Multiple ways to access data

Health data can be accessed via the REST API and Webhooks. The SDK methods below are a convenience for accessing data directly on-device.

MethodDescription
getSamplesRaw event-level data from Apple Health and Health Connect
getStatsDaily aggregated summaries of user activity
getBiomarkersSahha-derived daily health biomarkers
getScoresHealth scores and contributing factors
getDemographics / postDemographicsRetrieve or set optional profile metadata for analysis

View Available Data


Resources

Docs