Skip to main content

Payload and Categories

Each notification corresponds to a data type or event, and the payload parameters are sent to your callback URL.

The following table describes the POST parameters that the Withings server will send to your callback URL in a notification request.

NameTypeDescription
useridintdata source
deviceidstringevent trigger source
appliintdata category
startdateepochdata date
enddateepochdata date
datey-m-ddata or event date
actionstring

Value amongst:

  • delete if user is deleted
  • unlink if user unlinks your app
  • update if user updates their information

Refer to the notification categories below for information about which parameters you will receive depending on the notification category you subscribe to.

Payload Example

Here's an example of payload a POST request sent to your callback URL:

foo=bar
userid=12345
appli=1
startdate=1530576000
enddate=1530698753

In this case, you can call the Measure - Getmeas service to retrieve available data:

meastypes=1,5,6,8,76,77,88,91
category=1
startdate=1530576000
enddate=1530698753

Notification categories

Below is a list of notification categories to which you can subscribe. Here's an explanation of the different columns:

  • Appli: the value you must use when subscribing to the notification category.
  • Scope: permission scope you request when you obtained this user's authorization code.
  • Notification source: data or events that triggered the notification.
  • Notification params: parameters set by the Withings server in the body of the POST call sent to the callback URL to notify your server.
  • Services to call: the Health Data API services you should call to retrieve the new available data.
AppliScopeNotification triggerNotification paramsServices to call
1user.metrics

New weight-related data amongst meastypes:

ValueDescription
1Weight (kg)
5Fat Free Mass (kg)
6Fat Ratio (%)
8Fat Mass Weight (kg)
71Body Temperature (celsius)
73Skin Temperature (celsius)
76Muscle Mass (kg)
77Hydration (kg)
88Bone Mass (kg)
91Pulse Wave Velocity (m/s)
userid
appli
startdate (unix timestamp)
enddate (unix timestamp)
Measure - Getmeas
2user.metrics

New temperature-related data amongst meastypes:

ValueDescription
12Temperature (celsius)
71Body Temperature (celsius)
73Skin Temperature (celsius)
userid
appli
startdate (unix timestamp)
enddate (unix timestamp)
Measure - Getmeas
4user.metrics

New pressure related data amongst meastypes:

ValueDescription
9Diastolic Blood Pressure (mmHg)
10Systolic Blood Pressure (mmHg)
11Heart Pulse (bpm) - only for BPM and scale devices
54SP02 (%)
userid
appli
startdate (unix timestamp)
enddate (unix timestamp)
Measure - Getmeas
16users.activity

New activity-related data:

  • steps
  • distance
  • calories
  • intensity
  • workouts
userid
appli
date (YMD date)
Measure v2 - GetactivityMeasure v2 - GetintradayactivityMeasure v2 - Getworkouts
44users.activity

New sleep-related data:

  • sleep duration
  • sleep state
  • sleep state duration (light and deep, no REM)
  • sleep wakeup counts
userid
appli
startdate (unix timestamp)
enddate (unix timestamp)
Sleep v2 - GetSleep v2 - Getsummary
46user.info

New action on user profile:

  • delete
  • unlink
  • update
userid appli actionNo service to call
50user.sleepeventsNew bed in event (user lies on bed)userid
appli
date (unix timestamp)
deviceid
No service to call
51user.sleepeventsNew bed out event (user gets out of bed)userid
appli
date (unix timestamp)
deviceid
No service to call
52user.sleepeventsNew inflate done event (Withings sleep sensor initial inflation is done)userid
appli
date (unix timestamp)
deviceid
No service to call
53n/aNo account associated: a user tried to set-up his Withings Cellular Pro device or Wthings device using the Withings Data HUB but the device is not pre-associated to a Withings account.appli macUser v2 - Activate or User v2 - Link to associate the device to a Withings account.
54user.metricsNew ECG datauserid
appli
startdate (unix timestamp)
enddate (unix timestamp)
Heart v2 - List
55user.metricsNew ECG measure failed eventuserid
appli
date (unix timestamp)
deviceid
No service to call
58user.metrics

New glucose data amongst meastypes:

ValueDescription
119Glucose (mg/dL)

userid
appli
startdate (unix timestamp)
enddate (unix timestamp)

Measure - Getmeas
60user.dataNew survey data

userid
appli
startdate (unix timestamp)
enddate (unix timestamp)

Answers v2 - Get
61user.metricsNew Stethoscope data

userid
appli
startdate (unix timestamp)
enddate (unix timestamp)

Measure - Getmeas
62user.metricsNew HRV data

userid
appli
startdate (unix timestamp)
enddate (unix timestamp)

Measure - Getmeas