GET

/user/:userId/connected-providers

x-api-key*
curl --request GET \
  --url https://api.sandbox.metriport.com/user/:userId/connected-providers \
  --header 'x-api-key: <x-api-key>'

Response

connectedProvidersrequired
array

The user’s connected providers

{
  "connectedProviders": [
    "apple",
    "cronometer",
    "dexcom",
    "fitbit",
    "garmin",
    "google",
    "oura",
    "whoop",
    "withings"
  ]
}
import { MetriportDevicesApi } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

const connectedProviders = await metriportClient.getConnectedProviders("metriportUserId");