---
title: Integrating with Hubspot
slug: integrating-with-hubspot
docTags: 
createdAt: 2020-04-23T04:20:18.000Z
---

Pathfix allows you to easily add end-user OAuth based integration, handling authorization and enable communication between your app and Hubspot in just a few minutes.



Before proceeding, you will first need to register your application with Hubspot. Please refer the developer documentation provided by Hubspot here: [https://app.hubspot.com/developer](https://app.hubspot.com/developer)



Please note: You will need to create a developer account with Hubspot and be logged in to access this.



## Enable OAuth in Hubspot

Access your Application on Hubspot

Once you have added your application, you will need to navigate to `Apps`

- Select the App you want to enable the connection and click on `Manage`



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/atc5Ktx2yCuLoz7lYcVvj_hubspot-01.png "Image: Hubspot Developer Home")



![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/fHBwaAlhHqzE3UaYDRL6q_hubspot-02.png "Image: Hubspot Application")





- Click the `Auth` tab and navigate to `Auth settings` section
- Copy the `Client ID` and `Client secret`

![](https://archbee-doc-uploads.s3.amazonaws.com/E6H_--BmYJWG_yGaOUOxt/cXrCn6ZsJ3_hG2QrHSHIm_hubspot-03.png "Image: Hubspot Client ID and Client Secret")



- Navigate to `Redirect URL` and add the Pathfix Redirect URI `https://labs.pathfix.com/integrate/command` under the Redirect URI section
- Select the `Scopes` you would like to use from the list&#x20;



:::hint{type="danger"}
**UPDATE ON HUBSPOT SCOPES**

Hubspot has updated the scopes naming for all their apps. Please make sure you choose the right scopes and enter it in Pathfix exactly as mentioned in your app (separated by a space)
:::



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/OrDO8wqzIY5-uDrt6BdnK_image.png" size="80" width="1603" height="1138" caption="Image: Hubspot Redirect URL & Scope" position="center" showCaption="true"}



## Setup in Pathfix

- Login to your Pathfix account and click on `Add Application`
- Add the name of your SaaS and hit `Save`
- Select Hubspot from the list of providers to integrate with. You can change the Display `Name` and `Description`.&#x20;
- Enter the `Client ID` and `Client Secret` generated from Hubspot
- Paste the scopes exactly as shown in the Hubspot app (separated by a space) and click on `Save`
- Click on `Test Connection` and Connect an account to test the setup
- Once connected successfully, you will be able to choose a sample API from the dropdown to run test API calls
- Select a sample API from the dropdown and click on Send



::Image[]{src="https://api.archbee.com/api/optimize/E6H_--BmYJWG_yGaOUOxt/MV83sg5vf1b2CKosG6AQV_image.png" size="88" width="1271" height="1093" caption="Image: Add Hubspot ClientID and Client Secret" position="center" showCaption="true"}





## Adding Integration To Your SaaS

There are 2 steps to adding the integration to your SaaS

1. [End-user authorization](docId\:MsCMNgUGRsGrzSCMLCiXf)
2. [Enable pass-through API](docId\:JiDAxEPNR2Owz8w4_JpBK)



To add the integration to your Bubble app, please follow this documentation [Bubble.io Setup](https://docs.pathfix.com/bubble)



Need help? Reach out to us at support\@pathfix.com and we would be happy to assist!

