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

# DrChrono

> Access the DrChrono API in 2 minutes 💨

<Tabs>
  <Tab title="🚀 Quickstart">
    <Steps>
      <Step title="Create an integration">
        In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *DrChrono*. Nango doesn't provide a test OAuth app for DrChrono yet. You’ll need to set up your own by following these [instructions](#🧑%E2%80%8D💻-oauth-app-setup). After that, make sure to add the OAuth client ID, secret, and scopes in the integration settings in Nango.
      </Step>

      <Step title="Authorize DrChrono">
        Head to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to DrChrono and approve the requested scopes.
      </Step>

      <Step title="Call the DrChrono API">
        Make your first proxied request (fetch patients) by replacing the placeholders with your [secret key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

        <Tabs>
          <Tab title="cURL">
            ```bash theme={null}
            curl "https://api.nango.dev/proxy/api/patients" \
              -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
              -H "Provider-Config-Key: <INTEGRATION-ID>" \
              -H "Connection-Id: <CONNECTION-ID>"
            ```
          </Tab>

          <Tab title="Node">
            ```typescript theme={null}
            import { Nango } from '@nangohq/node';

            const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

            const res = await nango.get({
                endpoint: '/api/patients',
                providerConfigKey: '<INTEGRATION-ID>',
                connectionId: '<CONNECTION-ID>'
            });

            console.log(JSON.stringify(res.data, null, 2));
            ```
          </Tab>
        </Tabs>

        Retrieve raw credentials later via the [Node SDK](/reference/sdks/node#get-a-connection-with-credentials) or the [API](/reference/api/connection/get).

        <Note>
          DrChrono tokens are short-lived (48 hours). Nango automatically refreshes them using the stored refresh token whenever you call `nango.getConnection()`.
        </Note>
      </Step>
    </Steps>

    ✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to debug requests.

    <Tip>
      Ready for production? [Embed the auth flow](/guides/primitives/auth) so your users can connect their DrChrono accounts from within your product.
    </Tip>
  </Tab>

  <Tab title="🧑‍⚕️ OAuth app setup">
    <Steps>
      <Step title="Create a DrChrono account">
        If you don't already have one, sign up for a [DrChrono account](https://app.drchrono.com).
      </Step>

      <Step title="Register a new application">
        1. To create your application, go to the [API management](https://app.drchrono.com/api-management) page.
        2. Click the **New Application** button.
        3. Fill in all the required fields.
        4. For the **Redirect URIs**, add `https://api.nango.dev/oauth/callback`.

        After saving, you'll receive your **Client ID** and **Client Secret**. Copy them as you'll need them when configuring your integration in Nango.
      </Step>

      <Step title="Next">
        Follow the [*Quickstart*](/getting-started/quickstart).
      </Step>
    </Steps>
  </Tab>

  <Tab title="🔗 Useful links">
    | Topic     | Links                                                                                   |
    | --------- | --------------------------------------------------------------------------------------- |
    | General   | [DrChrono Website](https://www.drchrono.com/)                                           |
    | Developer | [API Management portal](https://app.drchrono.com/api-management/)                       |
    |           | [OAuth reference](https://app.drchrono.com/api-docs-old/v4/tutorial#introduction)       |
    |           | [API Docs](https://app.drchrono.com/api-docs-old/v4/documentation#introduction)         |
    |           | [Main API Docs](https://app.drchrono.com/api-docs-old/v4/documentation#main-api)        |
    |           | [API Rate limiting](https://app.drchrono.com/api-docs-old/v4/documentation#rate-limits) |

    <Note>Contribute useful links by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/drchrono.mdx)</Note>
  </Tab>

  <Tab title="🚨 API gotchas">
    * Find the required scope for each endpoint in its documentation. Alternatively, omit scopes entirely when setting up your integration in Nango to grant all scopes.

    <Note>Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/drchrono.mdx)</Note>
  </Tab>
</Tabs>

<Info>
  Questions? Join us in the [Slack community](https://nango.dev/slack).
</Info>
