Kolla
  • 😄Hello!
  • Getting Started
    • Introduction
    • Adding Connectors
    • Create an Invite Link
    • Installing Konnect
  • Developer Resources
    • Web SDK Reference
    • Postman Workspace
    • Web Elements (NEW!)
  • Tutorials
    • Build a Slack Integration
  • Connector Guides
    • Airtable
    • Clover
    • Freshdesk
    • Google Drive
    • Heartland Retail
    • HubSpot
    • Intercom
    • Mailchimp
    • Lightspeed Retail (R series)
    • Lightspeed Retail (X Series)
    • Microsoft Teams
    • Salesforce
    • Shopify
    • Slack
    • Square
    • Zendesk
Powered by GitBook
On this page
  • Setup Guide
  • Prerequisites
  • Add the Redirect URL to your HubSpot app
  • Add your HubSpot app to Konnect
  • Connecting to HubSpot
  1. Connector Guides

HubSpot

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

PreviousHeartland RetailNextIntercom

Last updated 2 years ago

Setup Guide

You can find your HubSpot application credentials by visiting your .

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 .

  • HubSpot application. Learn more about creating a HubSpot application .

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 .

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.

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)
    })

See the Hubspot for their full API reference.

HubSpot developer dashboard
here
here
HubSpot developer dashboard
REST API documentation