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.id - you’ll need it for all subsequent API calls.
Step 2: Connect to a Provider
Initiate OAuth to connect the user to their wearable provider.authorization_url. After they authorize, they’ll be redirected back to your redirect_uri.
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

