Authenticate a Withings user via OAuth2 and retrieve their weight/activity measurements
domain: developer.withings.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Register a partner application in the Withings developer dashboard to get a client ID and secret
Complete the OAuth2 authorization code flow, requesting scopes such as user.metrics and user.activity
Store the returned access token and refresh token; access tokens are short-lived, so check expiry and refresh proactively
POST to https://wbsapi.withings.net/measure with action=getmeas, a meastype filter (e.g. 1 for weight), and startdate/enddate (or lastupdate for incremental sync)
Include the Authorization: Bearer header with a valid access token; refresh and retry once on a 401
Known gotchas
getmeas uses a legacy POST-with-action-parameter style rather than a typical RESTful path — don't assume a GET/REST URL shape
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?