HubSpot
Open-Source HubSpot Connector
HubSpot
The HubSpot connector enables easy and secure data synchronization between your application and your customers’ HubSpot accounts through unified data models.
Authorization
The HubSpot connector uses OAuth for secure authentication. When creating a connection, the required OAuth scopes are automatically configured based on your specific operations needs (e.g. genericContact::create
, genericUser::list
).
✓ Automatic token refresh handling
✓ Proactive insufficient permissions detection
View our step-by-step integration guide
Whitelabel
Supported
You can choose to provide your own set of clientId
and clientSecret
for this
connector from the Morph Cloud dashboard; allowing a fully whitelabled experience
for your end-customers.
import { Morph } from "@runmorph/cloud";
const morph = Morph({ publicKey: "pk_demo_xxxxxxxxxxxxxxx", secretKey: "sk_demo_xxxxxxxxxxxxxxx"});
// create a new connection
const connection = morph.connections({ connectorId: "hubspot", ownerId: "demo" });
await connection.create({ operations:[ "genericContact::list" ]});
// auhtorize the connection
const { auhtorizationUrl } = await connection.authorize();
// redirect the user to the auhtorizationUrl
Live Demo
Select a connector below to experience our seamless authentication flow and see
how easy it is to connect third-party services.
Models
Generic
The HubSpot connector seamlessly integrates with our unified genericContact
model, enabling you to manage Contacts with rich data including firstName
, lastName
, phoneNumber
, email
and other key details
API Reference
GET | /resources/genericContact | List and Search HubSpot Contacts |
GET | /resources/genericContact/:id | Retrieve a HubSpot Contact |
POST | /resources/genericContact | Create a HubSpot Contact |
PATCH | /resources/genericContact/:id | Update a HubSpot Contact |
DEL | /resources/genericContact/:id | Delete a HubSpot Contact |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot Contact custom fields to the unified contact model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
The HubSpot connector seamlessly integrates with our unified genericCompany
model, enabling you to manage Companies with rich data including name
and other key details
API Reference
GET | /resources/genericCompany | List and Search HubSpot Companies |
GET | /resources/genericCompany/:id | Retrieve a HubSpot Company |
POST | /resources/genericCompany | Create a HubSpot Company |
PATCH | /resources/genericCompany/:id | Update a HubSpot Company |
DEL | /resources/genericCompany/:id | Delete a HubSpot Company |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot Company custom fields to the unified company model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
The HubSpot connector seamlessly integrates with our unified genericUser
model, enabling you to manage Users with rich data including firstName
, lastName
, email
and other key details
API Reference
GET | /resources/genericUser | List and Search HubSpot Users |
GET | /resources/genericUser/:id | Retrieve a HubSpot User |
POST | /resources/genericUser | Create a HubSpot User |
PATCH | /resources/genericUser/:id | Update a HubSpot User |
DEL | /resources/genericUser/:id | Delete a HubSpot User |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot User custom fields to the unified user model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
The HubSpot connector seamlessly integrates with our unified genericWorkspace
model, enabling you to manage Workspaces with rich data including name
and other key details
API Reference
GET | /resources/genericWorkspace | List and Search HubSpot Workspaces |
GET | /resources/genericWorkspace/:id | Retrieve a HubSpot Workspace |
POST | /resources/genericWorkspace | Create a HubSpot Workspace |
PATCH | /resources/genericWorkspace/:id | Update a HubSpot Workspace |
DEL | /resources/genericWorkspace/:id | Delete a HubSpot Workspace |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot Workspace custom fields to the unified workspace model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
CRM
The HubSpot connector seamlessly integrates with our unified crmOpportunity
model, enabling you to manage Opportunities with rich data including name
, amount
, currency
, pipeline
, stage
and other key details
API Reference
GET | /resources/crmOpportunity | List and Search HubSpot Opportunities |
GET | /resources/crmOpportunity/:id | Retrieve a HubSpot Opportunity |
POST | /resources/crmOpportunity | Create a HubSpot Opportunity |
PATCH | /resources/crmOpportunity/:id | Update a HubSpot Opportunity |
DEL | /resources/crmOpportunity/:id | Delete a HubSpot Opportunity |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot Opportunity custom fields to the unified opportunity model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
The HubSpot connector seamlessly integrates with our unified crmPipeline
model, enabling you to manage Pipelines with rich data including name
, stages
and other key details
API Reference
GET | /resources/crmPipeline | List and Search HubSpot Pipelines |
GET | /resources/crmPipeline/:id | Retrieve a HubSpot Pipeline |
POST | /resources/crmPipeline | Create a HubSpot Pipeline |
PATCH | /resources/crmPipeline/:id | Update a HubSpot Pipeline |
DEL | /resources/crmPipeline/:id | Delete a HubSpot Pipeline |
The HubSpot connector seamlessly integrates with our unified crmStage
model, enabling you to manage Stages with rich data including pipeline
, name
, type
and other key details
API Reference
GET | /resources/crmStage | List and Search HubSpot Stages |
GET | /resources/crmStage/:id | Retrieve a HubSpot Stage |
POST | /resources/crmStage | Create a HubSpot Stage |
PATCH | /resources/crmStage/:id | Update a HubSpot Stage |
DEL | /resources/crmStage/:id | Delete a HubSpot Stage |
The HubSpot connector seamlessly integrates with our unified crmEngagement
model, enabling you to manage Engagements with rich data including type
, direction
, status
, title
, description
and other key details
API Reference
GET | /resources/crmEngagement | List and Search HubSpot Engagements |
GET | /resources/crmEngagement/:id | Retrieve a HubSpot Engagement |
POST | /resources/crmEngagement | Create a HubSpot Engagement |
PATCH | /resources/crmEngagement/:id | Update a HubSpot Engagement |
DEL | /resources/crmEngagement/:id | Delete a HubSpot Engagement |
Custom Fields
Supported
The HubSpot connector supports our Field Mapping
feature, enabling you or your customers to seamlessly map HubSpot Engagement custom fields to the unified engagement model. This allows for flexible data synchronization while maintaining data consistency across all connectors.
Ticketing
The HubSpot connector seamlessly integrates with our unified ticketProject
model, enabling you to manage Projects with rich data including name
, description
, members
and other key details
API Reference
GET | /resources/ticketProject | List and Search HubSpot Projects |
GET | /resources/ticketProject/:id | Retrieve a HubSpot Project |
POST | /resources/ticketProject | Create a HubSpot Project |
PATCH | /resources/ticketProject/:id | Update a HubSpot Project |
DEL | /resources/ticketProject/:id | Delete a HubSpot Project |
The HubSpot connector seamlessly integrates with our unified ticketIssue
model, enabling you to manage Issues with rich data including project
, title
, description
, status
, priority
and other key details
API Reference
GET | /resources/ticketIssue | List and Search HubSpot Issues |
GET | /resources/ticketIssue/:id | Retrieve a HubSpot Issue |
POST | /resources/ticketIssue | Create a HubSpot Issue |
PATCH | /resources/ticketIssue/:id | Update a HubSpot Issue |
DEL | /resources/ticketIssue/:id | Delete a HubSpot Issue |
The HubSpot connector seamlessly integrates with our unified ticketComment
model, enabling you to manage Comments with rich data including issue
, author
, content
, isInternal
and other key details
API Reference
GET | /resources/ticketComment | List and Search HubSpot Comments |
GET | /resources/ticketComment/:id | Retrieve a HubSpot Comment |
POST | /resources/ticketComment | Create a HubSpot Comment |
PATCH | /resources/ticketComment/:id | Update a HubSpot Comment |
DEL | /resources/ticketComment/:id | Delete a HubSpot Comment |
Widget
The HubSpot connector seamlessly integrates with our unified widgetCardView
model, enabling you to manage Card Views with rich data including and other key details
API Reference
GET | /resources/widgetCardView | List and Search HubSpot Card Views |
GET | /resources/widgetCardView/:id | Retrieve a HubSpot Card View |
POST | /resources/widgetCardView | Create a HubSpot Card View |
PATCH | /resources/widgetCardView/:id | Update a HubSpot Card View |
DEL | /resources/widgetCardView/:id | Delete a HubSpot Card View |
Custom
Supported
Can’t find the unified model you need? The HubSpot connector supports your own custom model.
Webhooks
The HubSpot connector supports real-time event subscriptions, allowing you to receive instant notifications when records are created, updated, or deleted. Below are the supported models and their corresponding triggers.
Models | Created | Updated | Deleted | API Reference |
---|---|---|---|---|
genericContact | ||||
genericCompany | ||||
genericUser | ||||
genericWorkspace | ||||
crmOpportunity | ||||
crmPipeline | ||||
crmStage | ||||
ticketProject | ||||
ticketIssue | ||||
ticketComment | ||||
widgetCardView | ||||
crmEngagement |
Proxy
Supported
The HubSpot connector supports our Proxy Request
feature, allowing you to directly
call any endpoints from HubSpot’s public API without needing to handle authentication.
Your customer’s token will be automatically set and refreshed as needed, enabling
quick implementation of custom connector behaviors. View API Reference.