HubSpot
Connect to your users’ Hubspot CRM to create, access, and update records in their Hubspot account.
You'll need the following information to set up your HubSpot App with Paragon Connect:
- Client ID
- Client Secret
- Scopes Requested
Paragon 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 integration settings in Paragon. The Redirect URL is:
https://passport.useparagon.com/oauth
3. Click Manage apps, then select the app you'd like to connect to Paragon.
4. Under Auth > Auth settings > Redirect URL, paste-in Paragon Connect's 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.

1. Select HubSpot from the Integrations Catalog.
2. Under Integrations > Connected Integrations > {YOUR_APP} > Settings, fill out your credentials from the end of Step 1 in their respective sections:
- 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.
- Permissions: Select the scopes you've requested for your application.
Press the blue "Connect" button to save your credentials.
Note: You should only add the scopes you've requested in your application page to Paragon.

Once your users have connected their Hubspot account, you can use the Paragon SDK to access the Hubspot API on behalf of connected users.
Any Hubspot API endpoints can be accessed with the Paragon SDK as shown in this example.
// You can find your project ID in the Overview tab of any Integration
// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);
// List Companies
await paragon.request("hubspot", "/crm/v3/objects/companies", {
method: "GET"
});
// Create Company
await paragon.request("hubspot", "/crm/v3/objects/companies", {
method: "POST",
body: {
"properties": {
"city": "Cambridge",
"domain": "biglytics.net",
"industry": "Technology",
"name": "Biglytics",
"phone": "(877) 929-0687",
"state": "Massachusetts"
}
}
});
Once your HubSpot account is connected, you can add steps to perform the following actions:
- Create Contact
- Update Contact
- Search Contacts
- Get Contact by ID
- Create Company
- Update Company
- Search Company
- Get Company by ID
- Create Deal
- Update Deal
- Search Deals
- Get Deal by ID
- Create Engagement
When creating or updating records in HubSpot, you can reference data from previous steps by typing
{{
to invoke the variable menu.
It's common that different HubSpot instances may be configured with different Custom Objects or Custom Fields. Paragon provides the ability for your users to choose their own Custom Object mapping.

To allow your users to choose their own Custom Object Mapping, add the Custom Object Mapping user setting in your Connect Portal Editor. You should give this setting a descriptive user-setting name, for example, if you're mapping contacts from your app to HubSpot, you might call this "Map Contacts to this object".

Below, add a label for each object property that should be mapped from your app to a HubSpot object field. In our contacts example, you might add labels for "First Name", "Last Name", and "Email".
In your Connect Portal, your users will be prompted to select an object from their HubSpot instance when enabling this workflow. For each of the object properties you labeled, your users will be prompted to select which object field that property should be mapped to.
In the workflow editor, you can now access your user's custom object mapping in the variable menu. For example:

Webhook triggers can be used to run workflows based on events in your users' HubSpot account. For example, you might want to trigger a workflow whenever new contacts are created HubSpot to sync your users' HubSpot contacts to your application in real-time.

You can find the full list of Webhook Triggers for HubSpot below:
- New Record
- Record Updated
- Record Deleted
Last modified 1yr ago