HubSpot
Configuring HubSpot with Polytomic On Premises
Polytomic connects to HubSpot with OAuth, so you must create a HubSpot app that uses OAuth.
Existing HubSpot appsHubSpot stopped allowing new legacy public apps on June 23, 2026. A legacy public app you already use keeps working. Make sure it has the scopes listed below.
Create the app
HubSpot creates these apps with its command-line tool. See HubSpot's app creation guide for details.
-
Install the HubSpot CLI and sign in with
hs account auth. -
Run
hs project create. Select App as the base contents, choose the distribution that limits installation to specific accounts, and choose OAuth as the authentication method. -
Edit
authin the project'sapp-hsmeta.json:"auth": { "type": "oauth", "redirectUrls": ["https://polytomic.mycompany.com/connect/hubspot"], "requiredScopes": ["..."], "optionalScopes": ["..."], "conditionallyRequiredScopes": [] } -
Add the scopes below to
requiredScopesandoptionalScopes. -
Run
hs project upload. -
Run
hs project open, click your app under Project Components, and open the Auth tab. Copy the Client ID and Client secret. -
On the Distribution tab, install the app in the HubSpot accounts you want to connect.
Scopes
Polytomic requests all of these scopes when you connect HubSpot.
Required scopes
oauthcrm.importcrm.lists.readcrm.lists.writecrm.objects.companies.readcrm.objects.companies.writecrm.objects.contacts.readcrm.objects.contacts.writecrm.objects.custom.readcrm.objects.custom.writecrm.objects.deals.readcrm.objects.deals.writecrm.objects.line_items.readcrm.objects.line_items.writecrm.objects.owners.readcrm.schemas.companies.readcrm.schemas.contacts.readcrm.schemas.custom.readcrm.schemas.deals.readcrm.schemas.line_items.read
Optional scopes
These scopes turn on additional objects. HubSpot drops any scope that the account can't grant.
analytics.behavioral_events.sendautomationbehavioral_events.event_definitions.read_writebusiness-intelligencecontentcrm.objects.invoices.readcrm.objects.leads.readcrm.objects.marketing_events.readcrm.objects.services.readcrm.objects.services.writecrm.schemas.services.readcrm.schemas.services.writee-commerceformsmarketing.campaigns.readsales-email-readtickets
Set the credentials in Polytomic
Set these credentials in your Polytomic deployment:
HUBSPOT_CLIENT_IDHUBSPOT_CLIENT_SECRET
Updated 18 days ago