> ## Documentation Index
> Fetch the complete documentation index at: https://docs.junction.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dexcom (G6 and older)

> Connect legacy Dexcom G6 devices via the password-based integration, which requires users to enable Dexcom Share for data access.

<Note>
  `dexcom` is the provider slug for Dexcom (G6 and older).<br />
  For the OAuth-based `dexcom_v3` integration, see [Dexcom (OAuth based)](./dexcom_v3).
</Note>

<Warning>
  This provider is being phased out in favor of the new [OAuth-based Dexcom](./dexcom_v3) integration. Consider migrating to the new API at your earliest convenience.
</Warning>

## Enabling Dexcom Share

Your user needs to enable [Dexcom Share](https://www.dexcom.com/faqs/how-do-i-share-my-dexcom-g6-glucose-data-followers) for this connection to work:

<Steps>
  <Step title="Install Dexcom mobile app">
    They **must** use the Dexcom G6 mobile app ([iOS](https://apps.apple.com/us/app/dexcom-g6/id1209262925), [Android](https://play.google.com/store/apps/details?id=com.dexcom.g6)).

    Note that the Dexcom Clarity app would not work for this integration.
  </Step>

  <Step title="Enable Dexcom Share">
    Please refer to the [official help article on how to enable Dexcom Share](https://www.dexcom.com/faqs/how-do-i-share-my-dexcom-g6-glucose-data-followers).

    They **must** have at least one follower<sup>\[1]</sup> on Dexcom Share to keep the sharing activated. Otherwise, the API would
    stop reporting data to Junction.

    <Info>
      <sup>\[1]</sup> You can set up your own Dexcom account for your user to add as a follower in the Dexcom G6 mobile app.
      Alternatively, your user can invite `support@junction.com` as a follower.
    </Info>
  </Step>

  <Step title="Connect via Junction Link">
    They **must** connect to Junction using their *own* Dexcom account — the one which their Dexcom G6 app is signed into.
    This should **not** be the account of a follower.
  </Step>
</Steps>

## Junction Widget

To connect your device with the *widget*, follow the link wizard and enter your username and password.

## Junction Link

You can also connect a Dexcom user to Junction using the Junction client. For additional information, please consult the API reference.

<CodeGroup>
  ```python Python theme={null}
  link_token = client.Link.create(user_id)
  client.Link.password_provider(
      link_token, "dexcom", username, password
  )
  ```

  ```javascript JavaScript theme={null}
  const { link_token } = await client.Link.create(user_id);
  await client.Link.password_provider(
      link_token, "dexcom", username, password
  );
  ```
</CodeGroup>

## Webhooks

On successful connection, you will receive a [Connection created](/webhooks/introduction#connection-created-stage) webhook. [Daily webhooks](/webhooks/introduction#incremental-data-stage) `daily.data.glucose.created` and `daily.data.glucose.updated` will also be issued to your team as new or more up-to-date data becomes available during the day.

For this provider, however, Junction will begin to aggregate the data for the last 24 hours and will not go beyond that. As a result, there will be no [Historical webhooks](/webhooks/introduction#historical-data-backfill-stage) issued. If you would like to pull the data immediately after connection, you can use the `user/refresh` endpoint.
