Skip to content
Last updated

HubSpot Service integration

HubSpot Service Hub is the customer support product within the HubSpot platform — it powers tickets, conversations (the shared inbox across email, chat, and messaging channels), and the knowledge base. Integrating HubSpot Service with Frontegg allows your application to read and write Service Hub data on behalf of your users through OAuth 2.0 authentication.


Prerequisites

  • A HubSpot account with developer access
  • A HubSpot Service Hub subscription with access to tickets, conversations, and the knowledge base

Connect HubSpot Service

Step 1: Open the developer portal

Go to developers.hubspot.com and sign in with your HubSpot account.

HubSpot developer portal homepage

Step 2: Go to Legacy Apps

Once signed in, you will be in your HubSpot developer account. In the left sidebar, navigate to DevelopmentLegacy Apps. This page lists all existing applications in your account.

Click Create legacy app in the top right corner.

HubSpot Legacy Apps list

Step 3: Choose Public app type

In the Create Legacy App dialog that appears, select Public (for apps that can be installed by any HubSpot account).

HubSpot Create Legacy App dialog

Step 4: Fill in the app name

On the App Info tab, enter a name for your application in the Public app name field (for example, "Frontegg Service Integration"). This name appears in HubSpot tools when users install your app.

HubSpot app name form

Step 5: Open auth settings

Click the Auth tab to open the authentication configuration page. The App credentials, Redirect URLs, and Scopes sections all live here.

HubSpot Auth settings tab

Step 6: Add the redirect URL

Scroll down to the Redirect URLs section. Enter your Frontegg redirect URL:

https://YOUR_MCP_GATEWAY_URL/integration-callback

HubSpot redirect URL configuration

Step 7: Open the scope picker

Scroll down to the Scopes section and click Add new scope. The scope picker dialog opens, grouped by category. Use the search field to find the Service-specific scopes quickly.

HubSpot scope picker

Step 8: Select the Service scopes

Select the following scopes:

ScopeDescription
ticketsRead and write ticket records
conversations.readRead conversations from the shared inbox (threads, messages, inboxes)
conversations.writeSend and update conversations from the shared inbox
contentRead knowledge base articles

Minimum required scopes

For basic ticket management you need at least tickets. Add conversations.read/conversations.write to work with the shared inbox, and content to access knowledge base articles.

After selecting all required scopes, click Update. The selected scopes appear under Required scopes on the Auth page, alongside the always-required oauth scope.

HubSpot scopes selected

Step 9: Create the app and copy your credentials

Click Create app at the bottom of the page. Once the app is created, the App credentials section at the top of the Auth page displays your credentials:

  • Client ID — Your app's unique identifier used to initiate OAuth.
  • Client secret — Click Show to reveal the secret. Used to exchange authorization codes for access tokens.

Copy both values and store them securely.

Keep your credentials secure

Never share or commit your Client secret to version control.

HubSpot app credentials page

Configure the Frontegg portal

Once you have obtained your Client ID and Client secret from the steps above, enter them in the integration configuration page of the Frontegg portal:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT] → Connectors → HubSpot Service.
  2. Enter the Client ID and Client secret in the corresponding fields.
  3. Select the required scopes.
  4. Click Save.

Additional resources