Skip to main content
POST
/
api
/
v1
/
providers
/
{provider}
/
users
/
{user_id}
/
sync
/
historical
Sync Historical Data
curl --request POST \
  --url https://api.example.com/api/v1/providers/{provider}/users/{user_id}/sync/historical \
  --header 'Authorization: Bearer <token>'
{}

Documentation Index

Fetch the complete documentation index at: https://openwearables.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Open-Wearables-API-Key
string | null

Path Parameters

provider
enum<string>
required

Data provider

Available options:
apple,
samsung,
google,
garmin,
polar,
suunto,
whoop,
strava,
oura,
fitbit,
ultrahuman,
unknown,
internal
user_id
string<uuid>
required

Query Parameters

days
integer
default:90

Days of historical data to fetch (default: 90, max: 365). Ignored for providers with their own limits (e.g. Garmin: 30 days).

Required range: 1 <= x <= 365

Response

Successful Response

The response is of type Response Sync Historical Data Api V1 Providers Provider Users User Id Sync Historical Post · object.