Kolla
Konnect
Search
⌃K

HubSpot

Connect to your users’ Hubspot CRM to create, access, and update records in their Hubspot account.

Setup Guide

You can find your HubSpot application credentials by visiting your HubSpot developer dashboard.
You'll need the following information to set up your HubSpot App with Konnect:
  • Client ID
  • Client Secret
  • Install URL

Prerequisites

  • HubSpot Developer Account. You can create one here.
  • HubSpot application. Learn more about creating a HubSpot application here.

Add the Redirect URL to your HubSpot app

Kolla provides a redirect URL to send information to your app. To add the redirect URL to your HubSpot app:
1. Copy the link under "Redirect URL" in your connector settings in Kolla. The Redirect URL is:
https://connect.getkolla.com/oauth
2. Log in to your HubSpot developer dashboard.
3. Click Manage apps, then select the app you'd like to connect to Kolla.
4. Under Auth > Auth settings > Redirect URL, paste-in Konnect redirect URL found in Step 1.
5. Select any scopes you'd like to use in your application.
6. Press the Save button at the bottom of the page.
HubSpot provides your Client ID and Client Secret needed for the next step.

Add your HubSpot app to Konnect

1. Go to Integrations > Connectors and click Add Connector.
2. Choose HubSpot from the catalog of connectors
3. Name your instance of this connector and input the following configuration items:
  • Client ID: Found under Auth > Auth settings > Client ID on your HubSpot App page.
  • Client Secret: Found under Auth > Auth settings > Client secret on your HubSpot App page.
4. Next input your Install URL (Found under Auth > Auth settings > Install URL (OAuth) and we derive the Scopes/Permissions from the URL for you
Press the save button to finish adding this connector.

Connecting to HubSpot

Once your users have connected their HubSpot account, you can use the Kolla SDK to access your user's HubSpot access token and use that to connect to HubSpot.
See the Hubspot REST API documentation for their full API reference.
Any Hubspot API endpoints can be accessed with the HubSpot SDK as shown in this example.
// Use KollaConnect client to get your user's hubspot access token
kolla.authenticate(consumerToken)
​
// Get the consumer's auth token to hubspot
var clientHubspotToken = kolla.getToken("hubspot", customerId)
​
const hubspot = require('@hubspot/api-client')
const hubspotClient = new hubspot.Client({ accessToken: clientHubspotToken })
​
hubspotClient.crm.contacts.basicApi
.getPage(limit, after, properties, propertiesWithHistory, associations, archived)
.then((results) => {
console.log(results)
})
.catch((err) => {
console.error(err)
})
​
​