Skip to main content

Retrieve Answers

Once a user answer a survey, you can:

1. Get Notified

To implement the notification system, you must subscribe to it with an access_token.

You will have to specify the endpoint (callbackurl) you want Withings to send the notifications to.

Once subscribed, your system will receive POST requests when new survey data are available.

Click here to learn more about our Notification System

2. Pulling the answers

Endpoint Details

  • Endpoint: https://api.withings.com/v2/answers
    • Method: POST
    • Parameters:
      • action: Use "get".
      • surveyid (optional): The ID of the survey. If not provided, responses from all surveys are returned.
      • userid: User ID.
      • startdate : Filters responses by date range (Unix timestamps).
      • enddate (optional)
      • client_id: Client ID.
      • signature: Signature.
      • nonce: Nonce.

Example Response

Run In Postman

{
"status": 0,
"answers": [
{
"survey_id": 98765,
"user_id": 123456,
"answer_id": 1,
"measure_id": 54321,
"answers": {
"q1": [1],
"q2": [2],
"q3": [1, 3]
},
"timestamp": 1715088000
}
]
}