Sync User Data
Changed onSynchronize data from fitness provider API for a specific user.
Data Types:
- workouts: Workouts/exercises/activities
- 247: 24/7 data including sleep, recovery, and activity samples
- all: All available data types
Provider-specific:
- Suunto: Supports workouts and 247 data with pagination
- Polar: Supports workouts (exercises) only
- Garmin: Data arrives via webhooks (backfill for 30-day history)
- Whoop: Supports workouts and 247 data (sleep/recovery)
Execution Mode:
- async=true (default): Dispatches sync to background Celery worker. Returns immediately with task ID.
- async=false: Executes synchronously (may timeout for large data sets).
Requires valid API key and active connection for the user.
Request
- Base URL: https://api.openwearables.io (the document declares no server; this is the origin it was published from)
- URL: https://api.openwearables.io/api/v1/providers/{provider}/users/{user_id}/sync
- Auth: OAuth 2 (password, token URL /api/v1/auth/login)
Path parameters
Supported data providers.
Data provider
Query parameters
Types of data to sync from provider.
Type of data to sync: workouts, 247 (sleep/recovery/activity), or all
Unix timestamp to synchronize data since (0 = all, Suunto only)
Maximum number of items (Suunto: max 100)
Offset for pagination (Suunto only)
Filter by modification time instead of creation time (Suunto only)
Synchronize sample data (Polar only)
Synchronize zones data (Polar only)
Synchronize route data (Polar only)
Activity start time as Unix timestamp or ISO 8601 date (Garmin only)
Activity end time as Unix timestamp or ISO 8601 date (Garmin only)
Run sync asynchronously via Celery (default: true). Set false for sync.
Headers
Response
Successful Response
Changes
- breaking
the response's body type changed from
objectto no type for status - info
added to the response body
anyOflist for the response status
- breaking
- breaking
removed the enum value
googlefrom thepathrequest parameterprovider - info
added the new enum value
google_healthto thepathrequest parameterprovider - info
added the new enum value
health_connectto thepathrequest parameterprovider
- breaking