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>'
{}

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 Garmin (uses its own 30-day limit).

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.