---
title: SDK
subtitle: 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.

<!-- ## Get Started

{% action-cards %}

{% action-card title="Quickstart" icon="rocket-launch" href="/docs/connect/sdk/quickstart" description="Get from zero to collecting health data in minutes" /%}

{% /action-cards %} -->

---

## Integrate the SDK

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

1. [**Install the SDK**](/docs/connect/sdk/installation) — Prepare your project, add the Sahha library, and complete platform setup
2. [**Configure Settings**](/docs/connect/sdk/configuration) — Set your environment and notification preferences
3. [**Register and Authenticate Profiles**](/docs/connect/sdk/authentication) — Create user profiles and connect them to Sahha
4. [**Enable Data Collection**](/docs/connect/sdk/collection) — Choose sensors, request health data permissions, and start collecting

---

## Data Access

{% callout title="Multiple ways to access data" %}

Health data can be accessed via the [REST API](/docs/connect/api) and [Webhooks](/docs/connect/webhooks). The SDK methods below are a convenience for accessing data directly on-device.

{% /callout %}

| Method | Description |
| ------ | ----------- |
| [getSamples](/docs/connect/sdk/data/samples) | Raw event-level data from Apple Health and Health Connect |
| [getStats](/docs/connect/sdk/data/stats) | Daily aggregated summaries of user activity |
| [getBiomarkers](/docs/connect/sdk/data/biomarkers) | Sahha-derived daily health biomarkers |
| [getScores](/docs/connect/sdk/data/scores) | Health scores and contributing factors |
| [getDemographics / postDemographics](/docs/connect/sdk/data/demographics) | Retrieve or set optional profile metadata for analysis |

{% button href="/docs/connect/sdk/data" variant="default" %}View Available Data{% /button %}

---

## Resources

{% action-cards %}


{% action-card title="App Submission Guidelines" icon="storefront" href="/docs/connect/sdk/compliance" description="App Store Requirements for Apple and Google" /%}

{% /action-cards %}
