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

# HubSpot

> Sign in to HubSpot, choose an account, and approve access.

## Before users connect: create the HubSpot app

<Steps>
  <Step title="Create a public app">
    Open the [HubSpot Developer Portal](https://developers.hubspot.com/). Under **Development**, open **Legacy Apps**, select **Create app**, then choose **Public app**.

    <img src="https://mintcdn.com/rollout/geMrLesykrIZRu6I/images/end-user-guides/hubspot/legacy-apps.png?fit=max&auto=format&n=geMrLesykrIZRu6I&q=85&s=27b12095bafb0d2e195e91c02db55744" alt="HubSpot Development area with Legacy Apps selected and the Create legacy app button" width="1649" height="954" data-path="images/end-user-guides/hubspot/legacy-apps.png" />

    <img src="https://mintcdn.com/rollout/geMrLesykrIZRu6I/images/end-user-guides/hubspot/create-app-type.png?fit=max&auto=format&n=geMrLesykrIZRu6I&q=85&s=c2a418cdd583b1092ae70fb4876a1c68" alt="HubSpot Create Legacy App dialog showing the Public and Private app choices" width="1520" height="879" data-path="images/end-user-guides/hubspot/create-app-type.png" />

    Name the application after the product you are connecting and open the **Auth** tab.

    <Warning>
      HubSpot currently marks legacy apps as deprecated and may disable creation of new public legacy apps. If **Public** is unavailable, use an existing public app or follow HubSpot's current developer-project flow instead of creating a private app.
    </Warning>
  </Step>

  <Step title="Configure the redirect URI and scopes">
    Add this production redirect URI:

    ```text theme={null}
    https://universal.rollout.com/api/oauth/redirect
    ```

    Add the scopes required by the integration:

    ```text theme={null}
    crm.objects.contacts.read crm.objects.contacts.write
    crm.objects.deals.read crm.objects.deals.write
    crm.schemas.contacts.read crm.schemas.contacts.write
    crm.schemas.deals.read crm.schemas.deals.write
    crm.objects.owners.read crm.objects.companies.read
    crm.lists.write crm.lists.read sales-email-read e-commerce tickets
    ```
  </Step>

  <Step title="Copy the credentials into Rollout">
    Save the app, return to the **Auth** tab, and copy the **Client ID** and **Client Secret** into the HubSpot OAuth configuration in Rollout.

    Depending on the portal permissions, a HubSpot Super Admin may need to complete this setup.
  </Step>
</Steps>

## Connect a HubSpot account

<Steps>
  <Step title="Start the secure connection">
    In the connection window, select **Connect Account**.

    <div className="hidden sm:block">
      <img src="https://mintcdn.com/rollout/geMrLesykrIZRu6I/images/end-user-guides/hubspot/connect-account.png?fit=max&auto=format&n=geMrLesykrIZRu6I&q=85&s=2817f162ede5823827565a6db76ba0ef" alt="The Rollout-powered HubSpot connection screen with the Connect Account button" width="1000" height="240" data-path="images/end-user-guides/hubspot/connect-account.png" />
    </div>

    <div className="sm:hidden">
      <img src="https://mintcdn.com/rollout/geMrLesykrIZRu6I/images/end-user-guides/hubspot/connect-account-mobile.png?fit=max&auto=format&n=geMrLesykrIZRu6I&q=85&s=ea29ae48460579b6a4319f1c54dcbf2a" alt="A mobile close-up of the HubSpot Connect Account button" width="900" height="216" data-path="images/end-user-guides/hubspot/connect-account-mobile.png" />
    </div>
  </Step>

  <Step title="Sign into HubSpot">
    In the secure HubSpot window that opens, sign in with the HubSpot user who can approve integrations for the account.
  </Step>

  <Step title="Choose an account and connect">
    Choose the HubSpot account you want to connect. Review the requested access, then approve the connection.

    The window closes and returns you to the product. Your HubSpot account is now connected.
  </Step>
</Steps>
