Lodol Docs

HubSpot

API actions for the HubSpot integration.

HubSpot

Automate HubSpot CRM: manage contacts, companies, and deals with private app tokens.


Connect a HubSpot contact to a company so they show up together in your CRM.

Parameters

ParameterTypeRequiredDescription
contact_idstringYesHubSpot contact ID
company_idstringYesHubSpot 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

ParameterTypeRequiredDescription
namestringYesCompany name
domainstringNoCompany website domain (for example, acme.com)

Response

{}

Create a HubSpot contact

Create a new contact with email, name, phone, and company details.

Parameters

ParameterTypeRequiredDescription
emailstringYesContact email
first_namestringNoFirst name
last_namestringNoLast name
phonestringNoPhone number
companystringNoCompany name

Response

{}

Create a HubSpot deal

Create a new deal with optional pipeline and stage.

Parameters

ParameterTypeRequiredDescription
deal_namestringYesDeal name
amountnumberNoDeal amount
pipelinestringNoID of the pipeline to add the deal to. Leave blank to use your default sales pipeline.
stagestringNoID 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

ParameterTypeRequiredDescription
emailstringYesContact email to search for

Response

{}

List HubSpot contacts

List a limited set of HubSpot contacts for quick review.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum 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

ParameterTypeRequiredDescription
contact_idstringYesHubSpot contact ID
emailstringNoNew email address
first_namestringNoNew first name
last_namestringNoNew last name
phonestringNoNew phone number
companystringNoNew company name

Response

{}

Update deal stage

Move a HubSpot deal to a new stage.

Parameters

ParameterTypeRequiredDescription
deal_idstringYesHubSpot deal ID
stagestringYesID of the stage to move the deal to

Response

{}

On this page