HubSpot
API actions for the HubSpot integration.
HubSpot
Automate HubSpot CRM: manage contacts, companies, and deals with private app tokens.
Link a contact to a company
Connect a HubSpot contact to a company so they show up together in your CRM.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contact_id | string | Yes | HubSpot contact ID |
company_id | string | Yes | HubSpot company ID |
Response
{
"fromObjectId": 123,
"fromObjectTypeId": "0-1",
"labels": [],
"toObjectId": 456,
"toObjectTypeId": "0-2"
}Create a HubSpot company
Create a new HubSpot company record.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Company name |
domain | string | No | Company website domain (for example, acme.com) |
Response
{}Create a HubSpot contact
Create a new contact with email, name, phone, and company details.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Contact email |
first_name | string | No | First name |
last_name | string | No | Last name |
phone | string | No | Phone number |
company | string | No | Company name |
Response
{}Create a HubSpot deal
Create a new deal with optional pipeline and stage.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deal_name | string | Yes | Deal name |
amount | number | No | Deal amount |
pipeline | string | No | ID of the pipeline to add the deal to. Leave blank to use your default sales pipeline. |
stage | string | No | ID of the stage to place the deal in. Leave blank to use the pipeline's first stage. |
Response
{}Find contact by email
Look up a HubSpot contact using an email address.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Contact email to search for |
Response
{}List HubSpot contacts
List a limited set of HubSpot contacts for quick review.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Maximum contacts to return |
Response
{
"results": [
{
"id": "contact123",
"properties": {
"email": "user@example.com"
}
}
]
}Update a HubSpot contact
Change the details of an existing HubSpot contact, such as their name, phone number, or company.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contact_id | string | Yes | HubSpot contact ID |
email | string | No | New email address |
first_name | string | No | New first name |
last_name | string | No | New last name |
phone | string | No | New phone number |
company | string | No | New company name |
Response
{}Update deal stage
Move a HubSpot deal to a new stage.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deal_id | string | Yes | HubSpot deal ID |
stage | string | Yes | ID of the stage to move the deal to |
Response
{}