1. User
  2. Revoke Provider Access
DELETE

/user/revoke

x-api-key*
curl --request DELETE \
     --url https://api.metriport.com/user/revoke \
     --header 'x-api-key: AUTH_VALUE'

‚Äč
Query Params

userIdRequired
string

The Metriport user ID to revoke access for.

providerRequired
string

The provider you would like to revoke access to.

Can be one of: apple, cronometer, fitbit, oura, whoop, or withings.

import { Metriport } from "@metriport/api";
import { ProviderSource } from "@metriport/api";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

await metriportClient.revokeUserAccessToProvider("metriportUserId", ProviderSource.fitbit);