Integrate · REST API

Health data API for wearable programs

One REST API for the processed data Sensor Bio V2 produces, and for the organization behind it: users, invites, devices and data downloads.

Quick answer

What does the Sensor Bio health data API do?

The Sensor Bio REST API sends the processed data Sensor Bio V2 produces to your backend as JSON over HTTP/2, with timestamps in Unix milliseconds (UTC). Use an organization API key for server-to-server work across your organization, or OAuth2 when each user signs in and approves access. The same API manages users, invites and devices. Raw PPG comes through the SDK stream or a per-organization download instead.

What the API gives you

Processed data, ready for your backend.

JSON over HTTPS, with every timestamp in Unix milliseconds (UTC).

01 / Biometrics

The core signals

Heart rate, SpO2, breathing rate and HRV, per user.

02 / Sleep

Nights, in detail

Sleep stats plus daily and granular sleep details.

03 / Scores

Daily scores and recovery

Daily scores and recovery score details at the granularity you ask for.

04 / Activity

Movement and energy

Steps, calories and activities, with day, week, month and year granularity where supported.

Authentication

Two ways in, depending on who owns the data.

Both use the same API host. Pick by whether you act for your whole organization or for one consenting user.

01 / Organization API key

Server to server

Use it for

Data across your organization, device provisioning and user management. Required by organization-only endpoints.

How

Create the key in the Sensor Bio web platform under Developers, keep it server-side, and send Authorization: APIKey <key>.

02 / OAuth2

On behalf of a user

Use it for

Products where each user signs in and approves access to their own data.

How

Authorization code flow with a refresh token. There is no client credentials grant and no scopes.

First request

One header, one call.

bash
curl --http2 https://api.sensorbio.com/v1/biometrics \
  -H "Authorization: APIKey $SENSORBIO_API_KEY"

The API requires HTTP/2. An HTTP/1.x request returns status 464.

Date parameters use the user's local date; response timestamps are Unix ms in UTC.

Developer samples in curl, Python, TypeScript and Go cover both auth methods. Demo credentials are available on request from developers@sensorbio.com.

Endpoint map

What lives where in the API.

SpecificationEndpointsAuth
User data
Biometrics/v1/biometricsAPI key or OAuth2
Sleep/v1/sleep, /v1/sleep/details/day, /v1/sleep/details/granularAPI key or OAuth2
Scores and recovery/v1/scores, /v1/scores/recovery/detailsAPI key or OAuth2
Activity/v1/steps, /v1/step/details, /v1/calorie/details, /v1/activitiesAPI key or OAuth2
User and device/v1/user, /v1/device-infoAPI key or OAuth2
Organization
Users and invites/v1/organizations/users, /invite-user, /sign-user-upOrg API key only
Sign-in help/v1/organizations/login-tokens, /login-qr-codeOrg API key only
Devices/v1/organizations/user-device-lock, /device-subscriptionsOrg API key only
FAQ

Questions, answered.

What is a wearable health data API?

It is an interface your backend calls to read data a wearable has already collected and synced, rather than pairing with the device itself. With Sensor Bio, the REST API returns processed metrics per user plus organization tools for users, invites and devices. The mobile SDK covers live data on the phone.

What data does the Sensor Bio API return?

Sleep, biometrics (heart rate, SpO2, breathing rate and HRV), daily scores, recovery, steps, calories, activities and device info, as JSON.

Should I use an API key or OAuth2?

Use an organization API key for server-to-server work across your organization. Use OAuth2 when each user signs in and approves access to their own data.

Can I get raw PPG through the API?

Raw PPG for V2 comes through the SDK raw stream or a per-organization download from the web platform. The REST API serves computed metrics.

Why am I getting HTTP 464?

The API requires HTTP/2. A 464 means the request went out over HTTP/1.x, often because of an old client library or a proxy that downgrades the connection.

How do I try the API?

Download the developer samples (curl, Python, TypeScript and Go) from developers.sensorbio.com and request demo credentials from developers@sensorbio.com.

Protect the Signal.

Get an API key for your organization.

Talk to the team about access, demo credentials and your data model.

Sensor Bio V2 is a general wellness device. It is not FDA cleared and is not intended to diagnose, treat, cure or prevent any disease. Data described on this page is for wellness, research and product development use.