Set up a HubSpot OAuth app
Create a new app with the HubSpot CLI, or use an existing legacy public app. HubSpot no longer lets you create legacy public apps.
Open or create the app
Sign in to your HubSpot account.
- CLI app: Run
npm install -g @hubspot/cli@latest, thenhs account auth. Runhs project createand choose App, HubSpot Marketplace and OAuth. - Legacy app: In the left sidebar, click More > Development > Legacy Apps, then open your public app.

Set the callback URL
Add the Callback URL from your Connector Profile as a redirect URL.
- CLI app: In
src/app/app-hsmeta.json, add it toconfig.auth.redirectUrls. - Legacy app: On the app’s Auth tab, enter it in Redirect URL, then click Save.
Add the scopes
Make oauth the only required scope, so HubSpot accounts without access to some tools can still connect. Add every other scope listed as optional. See HubSpot scopes.
- CLI app: Set
config.auth.requiredScopesto["oauth"], and add the other scopes toconfig.auth.optionalScopes. - Legacy app: On the Auth tab under Scopes, click Add new scope. Select
oauthand mark it as Required, then select each of the other scopes and mark it as Optional.
Save your changes
Save the callback URL and scopes to the app.
- CLI app: Run
hs project uploadfrom the project directory. - Legacy app: Click Update.
Copy credentials
Copy the Client ID and Client Secret into your Connector Profile.
- CLI app: Run
hs project open, click your app under Project Components, and open the Auth tab. They’re under Client credentials. - Legacy app: They’re on the app’s Auth tab. Click Show to reveal the secret.
Create the StackOne Connector Profile
Create a Connector Profile
Link an Account