Skip to main content

Overview

This guide walks you through the complete flow of integrating Open Wearables with your application, from creating a user to fetching their health data.

Step 1: Create a User

First, create a user in Open Wearables to represent your application’s user.
Use external_user_id to map Open Wearables users to your application’s user IDs for easy lookup later.
Response:
Save the id - you’ll need it for all subsequent API calls.
Open Wearables allows duplicate email addresses. If you need uniqueness, check for existing users first using GET /api/v1/users?search=user@example.com which returns a paginated list.

Step 2: Connect to a Provider

Initiate OAuth to connect the user to their wearable provider.
Response:
Redirect the user to authorization_url. After they authorize, they’ll be redirected back to your redirect_uri.
Provider names must be lowercase: garmin, polar, suunto, apple

Frontend Example

Step 3: Sync Data

After OAuth completes, an initial sync is triggered automatically. For subsequent syncs or to fetch historical data:
For Garmin, including summary_start_time and summary_end_time is recommended to specify the date range for data retrieval.

Step 4: Fetch Data

Now you can fetch the user’s health data.

Timeseries Data (Heart Rate, Steps, etc.)

Workouts

Sleep Sessions

Menstrual Cycles

Complete JavaScript Example

Next Steps

Provider Setup

Provider-specific configuration and requirements

Data Types

Available metrics, workout types, and data formats