HubSpot
Create and manage contacts, deals, and companies in HubSpot CRM.
On this page
- Connect
- Call it from a workflow
- Actions (45)
- create-contact
- create-deal
- update-contact
- add_contact_to_list
- add-contact-to-workflow
- create-associations
- create-blog-post
- create-company
- create-custome-object
- create-line-item
- create-or-update-contact
- create-page
- create-product
- create-ticket
- custom_api_call
- delete-page
- find-associations
- find-company
- find-contact
- find-custom-object
- find-deal
- find-line-item
- find-product
- find-ticket
- get-company
- get-contact
- get-custom-object
- get-deal
- get-line-item
- get-owner-by-email
- get-owner-by-id
- get-page
- get-pipeline-stage-details
- get-product
- get-ticket
- remove-associations
- remove-contact-from-list
- remove-email-subscription
- update-company
- update-custome-object
- update-deal
- update-line-item
- update-product
- update-ticket
- upload-file
- Details
Connect
Auth type: OAuth (oauth2). Click Connect and approve access on the provider's page. Appbricx runs the OAuth flow (signed single-use state, PKCE where the provider supports it), stores the tokens encrypted and refreshes them before they expire.
Scopes requested: crm.objects.contacts.readcrm.objects.contacts.writecrm.objects.deals.read
OAuth needs an OAuth app: the platform's when the operator configured one, or your own (admin panel, Integrations, Configure). You can also bring your own credentials.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("hubspot", "create-contact", {});
if (!res.success) throw new Error(res.error);
ctx.log.info("HubSpot answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "hubspot-create-contact",
name: "HubSpot: Create Contact",
description: "Calls HubSpot when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("hubspot", {
"action": "create-contact"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/hubspot/create-contact" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{}}'Actions
create-contactin catalog
Create Contact. Creates a contact in Hubspot.
Also accepted as create_contact.
| Input | Type | Description |
|---|---|---|
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
create-dealin catalog
Create Deal. Creates a new deal in Hubspot.
| Input | Type | Description |
|---|---|---|
dealnamerequired | text | Deal Name |
pipelineIdrequired | id (picked from your account) | Deal Pipeline |
pipelineStageIdrequired | id (picked from your account) | Deal Stage |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
update-contactin catalog
Update Contact. Updates a contact in Hubspot.
Also accepted as update_contact.
| Input | Type | Description |
|---|---|---|
contactIdrequired | text | The ID of the contact to update. |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
add_contact_to_list
Add contact To List. Add contact to list
| Input | Type | Description |
|---|---|---|
listIdrequired | id (picked from your account) | List ID |
emailrequired | text | Contact Email |
add-contact-to-workflow
Add Contact to Workflow. Adds a contact to a specified workflow in your HubSpot account.
| Input | Type | Description |
|---|---|---|
workflowIdrequired | id (picked from your account) | Workflow |
emailrequired | text | The email of the contact to add to the workflow. |
create-associations
Create Associations. Creates associations between objects
| Input | Type | Description |
|---|---|---|
fromObjectIdrequired | text | The ID of the object being associated. |
fromObjectTyperequired | id (picked from your account) | The type of the object being associated. |
toObjectTyperequired | id (picked from your account) | Type of the objects the from object is being associated with. |
associationTyperequired | id (picked from your account) | Type of the association |
toObjectIdsrequired | ids (picked from your account) | The ID'sof the objects the from object is being associated with |
create-blog-post
Create COS Blog Post. Creates a blog post in you Hubspot COS blog.
| Input | Type | Description |
|---|---|---|
contentGroupIdrequired | id (picked from your account) | Blog URL |
authorIdrequired | id (picked from your account) | Blog Author |
statusrequired | one of "DRAFT" | "PUBLISHED" | Publish This Post? |
slugrequired | text | The slug of the blog post. This is the URL of the post on your COS blog. |
titlerequired | text | Blog Post Title |
bodyrequired | long text | Blog Post Content |
metarequired | long text | Meta Description |
imageUrlrequired | text | Featured Image URL |
create-company
Create Company. Creates a company in Hubspot.
| Input | Type | Description |
|---|---|---|
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
create-custome-object
Create Custom Object. Creates a custom object in Hubspot.
| Input | Type | Description |
|---|---|---|
customObjectTyperequired | id (picked from your account) | Type of Custom Object |
objectPropertiesoptional | object (depends on other props) | Custom Object Properties |
additionalPropertiesToRetrieveoptional | object (depends on other props) | Additional Properties to Retrieve |
create-line-item
Create Line Item. Creates a line item in Hubspot.
| Input | Type | Description |
|---|---|---|
productIdrequired | id (picked from your account) | Line Item Information: Product ID |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
create-or-update-contact
Create or Update Contact. Creates a new contact or updates an existing contact based on email address.
| Input | Type | Description |
|---|---|---|
emailrequired | text | Contact Email |
objectPropertiesoptional | object (depends on other props) | Object Properties |
create-page
Create Page. Creates a new landing/site page.
| Input | Type | Description |
|---|---|---|
pageTyperequired | one of "landing_page" | "site_page" | Page Type |
pageTitlerequired | text | Page Title |
internalPageNamerequired | text | Internal Page Name |
templatePathrequired | text | The path should not include a slash (/) at the start.For example,"@hubspot/elevate/templates/blank.hubl.html". |
slugrequired | text | Slug |
languageoptional | text | Language |
metaDescriptionoptional | long text | Meta Description |
stateoptional | one of "DRAFT" | "PUBLISHED_OR_SCHEDULED" | State |
headHtmloptional | long text | Additional Head HTML |
footerHtmloptional | long text | Additional Footer HTML |
create-product
Create Product. Creates a product in Hubspot.
| Input | Type | Description |
|---|---|---|
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
create-ticket
Create Ticket. Creates a ticket in HubSpot.
| Input | Type | Description |
|---|---|---|
ticketNamerequired | text | The name of the ticket to create. |
pipelineIdrequired | id (picked from your account) | Ticket Pipeline |
pipelineStageIdrequired | id (picked from your account) | Ticket Pipeline Stage |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
delete-page
Delete Page. Deletes an existing landing/site page.
| Input | Type | Description |
|---|---|---|
pageTyperequired | one of "landing_page" | "site_page" | Page Type |
pageIdrequired | text | The ID of the page to delete. |
find-associations
Find Associations. Finds associations between objects
| Input | Type | Description |
|---|---|---|
fromObjectIdrequired | text | The ID of the object you want to search the association. |
fromObjectTyperequired | id (picked from your account) | The type of the object you want to search the association. |
toObjectTyperequired | id (picked from your account) | Type of the object the from object is being associated with. |
find-company
Find Company. Finds a company by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
find-contact
Find Contact. Finds a contact by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
find-custom-object
Find Custom Object. Finds a custom object by searching.
| Input | Type | Description |
|---|---|---|
customObjectTyperequired | id (picked from your account) | Type of Custom Object |
firstSearchPropertyNamerequired | object (depends on other props) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | object (depends on other props) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | object (depends on other props) | Additional Properties to Retrieve |
find-deal
Find Deal. Finds a deal by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
find-line-item
Find Line Item. Finds a line item by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
find-product
Find Product. Finds a product by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
find-ticket
Find Ticket. Finds a ticket by searching.
| Input | Type | Description |
|---|---|---|
firstSearchPropertyNamerequired | id (picked from your account) | First search property name |
firstSearchPropertyValuerequired | text | First search property value |
secondSearchPropertyNameoptional | id (picked from your account) | Second search property name |
secondSearchPropertyValueoptional | text | Second search property value |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-company
Get Company. Gets a company.
| Input | Type | Description |
|---|---|---|
companyIdrequired | text | The ID of the company to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-contact
Get Contact. Gets a contact.
| Input | Type | Description |
|---|---|---|
contactIdrequired | text | The ID of the contact to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-custom-object
Get Custom Object. Gets a custom object.
| Input | Type | Description |
|---|---|---|
customObjectTyperequired | id (picked from your account) | Type of Custom Object |
customObjectIdrequired | text | The ID of the custom object to get. |
additionalPropertiesToRetrieveoptional | object (depends on other props) | Additional Properties to Retrieve |
get-deal
Get Deal. Gets a deal.
| Input | Type | Description |
|---|---|---|
dealIdrequired | text | The ID of the deal to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-line-item
Get Line Item. Gets a line item.
| Input | Type | Description |
|---|---|---|
lineItemIdrequired | text | The ID of the line item to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-owner-by-email
Get Owner by Email. Gets an existing owner by email.
| Input | Type | Description |
|---|---|---|
emailrequired | text | Owner Email |
get-owner-by-id
Get Owner by ID. Gets an existing owner by ID.
| Input | Type | Description |
|---|---|---|
ownerIdrequired | text | Owner ID |
get-page
Get Page. Gets landing/site page Details.
| Input | Type | Description |
|---|---|---|
pageTyperequired | one of "landing_page" | "site_page" | Page Type |
pageIdrequired | text | The ID of the page to get. |
get-pipeline-stage-details
Get Pipeline Stage Details. Finds and retrieves CRM object pipeline stage details.
| Input | Type | Description |
|---|---|---|
objectTyperequired | one of "ticket" | "deal" | Object Type |
pipelineIdrequired | text | Pipeline ID |
stageIdrequired | text | Stage ID |
get-product
Get Product. Gets a product.
| Input | Type | Description |
|---|---|---|
productIdrequired | text | The ID of the product to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
get-ticket
Get Ticket. Gets a ticket.
| Input | Type | Description |
|---|---|---|
ticketIdrequired | text | The ID of the ticket to get. |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
remove-associations
Remove Associations. Removes associations between objects
| Input | Type | Description |
|---|---|---|
fromObjectIdrequired | text | The ID of the object you want to remove the association from. |
fromObjectTyperequired | id (picked from your account) | The type of the object you want to remove the association from. |
toObjectTyperequired | id (picked from your account) | Type of the currently associated objects that you're removing the association from. |
associationTyperequired | id (picked from your account) | Type of the association |
toObjectIdsrequired | ids (picked from your account) | The IDs of the currently associated objects that you're removing the association from. |
remove-contact-from-list
Remove Contact from List. Remove a contact from a specific list.
| Input | Type | Description |
|---|---|---|
listIdrequired | id (picked from your account) | List ID |
emailrequired | text | Contact Email |
remove-email-subscription
Remove Email Subscription. Removes email subscription.
| Input | Type | Description |
|---|---|---|
emailrequired | text |
update-company
Update Company. Updates a company in Hubspot.
| Input | Type | Description |
|---|---|---|
companyIdrequired | text | The ID of the company to update. |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
update-custome-object
Update Custom Object. Updates a custom object in Hubspot.
| Input | Type | Description |
|---|---|---|
customObjectTyperequired | id (picked from your account) | Type of Custom Object |
customObjectIdrequired | text | The ID of the custom object to update. |
objectPropertiesoptional | object (depends on other props) | Custom Object Properties |
additionalPropertiesToRetrieveoptional | object (depends on other props) | Additional Properties to Retrieve |
update-deal
Update Deal. Updates a deal in HubSpot.
| Input | Type | Description |
|---|---|---|
dealIdrequired | text | The ID of the deal to update. |
dealnameoptional | text | Deal Name |
pipelineIdoptional | id (picked from your account) | Deal Pipeline |
pipelineStageIdoptional | id (picked from your account) | Deal Stage |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
update-line-item
Update Line Item. Updates a line item in Hubspot.
| Input | Type | Description |
|---|---|---|
lineItemIdrequired | text | The ID of the line item to update. |
productIdoptional | id (picked from your account) | Line Item Information: Product ID |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
update-product
Update Product. Updates a product in Hubspot.
| Input | Type | Description |
|---|---|---|
productIdrequired | text | The ID of the product to update. |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
update-ticket
Update Ticket. Updates a ticket in HubSpot.
| Input | Type | Description |
|---|---|---|
ticketIdrequired | text | The ID of the ticket to update. |
ticketNameoptional | text | Ticket Name |
pipelineIdoptional | id (picked from your account) | Ticket Pipeline |
pipelineStageIdoptional | id (picked from your account) | Ticket Pipeline Stage |
objectPropertiesoptional | object (depends on other props) | Object Properties |
additionalPropertiesToRetrieveoptional | ids (picked from your account) | Additional properties to retrieve |
upload-file
Upload File. Uploads a file to HubSpot File Manager.
| Input | Type | Description |
|---|---|---|
folderIdrequired | id (picked from your account) | Folder |
fileNamerequired | text | File Name |
accessLevelrequired | one of "PUBLIC_INDEXABLE" | "PUBLIC_NOT_INDEXABLE" | "PRIVATE" | Access Level |
filerequired | file | File |
Details
- Id
hubspot- Category
- CRM and sales
- Tags
- crm, sales, contacts, deals, marketing
- Package
@activepieces/piece-hubspot@0.8.4- Tier
- Built in