Create a HubSpot OAuth application
Create a public app in the HubSpot developer portal to enable OAuth authentication.
Sign in to HubSpot
Sign in to your HubSpot account.
- Click on the account menu in the top right and select Development.
- Click Legacy Apps in the left sidebar.
Create a new app
Click Create app in the upper right corner and select Public app.
- Enter an application name (e.g., “StackOne Integration”)
- Click Create app.
Set the redirect URI
Navigate to the Auth tab in your application settings.
- In the Redirect URL field, enter:
https://api.stackone.com/connect/oauth2/hubspot/callback - Click Save.
Copy credentials
Copy your Client ID and Client Secret from the Auth tab.
- Copy the Client ID value.
- Click Show next to Client Secret to reveal it, then copy.
- Store both securely for use later.
Configure scopes
In the Auth tab, scroll to the Scopes section. HubSpot supports required and optional scopes — at runtime, optional scopes are automatically dropped if the connecting user’s account lacks access. Importantly, every scope listed in the install URL must first be registered on this Scopes page; HubSpot will reject the install (and the account connection will fail) if the URL references a scope you have not added here. See HubSpot scopes documentation for details.
- Mark only
oauthas Required (minimum required scope). - Mark all the following scopes as Optional to support different user permission levels.
- Required to connect successfully — every scope you intend to request must be added here as either Required or Optional. Omitting a scope from this page while still requesting it during connection will cause the OAuth install to fail.
List of optional scopes
Add every scope below as Optional in your HubSpot app. If you register only a subset, you must list the same subset in the StackOne Auth Config’s Optional Scopes field (Step “Create the StackOne Auth Config” below) — otherwise the connection will fail because the install URL will reference scopes that aren’t registered in the app.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for HubSpot:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select HubSpot
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Required Scopes (Optional)
- Optional Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile