Skip to main content

HubSpot Operations Reference

Orkes Conductor integrates with HubSpot to let you create and manage contacts, companies, deals, tickets, and other CRM data directly from your workflows. Once you configure the HubSpot integration, you can use the following operations to create, retrieve, update, and delete records in HubSpot without leaving your workflow.

This page covers the parameters and expected output for each operation available in the HubSpot integration.

Create Contact

Creates a new contact in HubSpot.

ParameterDescriptionTypeRequired/Optional
EmailThe contact's email address.stringRequired.
First NameThe contact's first name.stringOptional.
Last NameThe contact's last name.stringOptional.
PhoneThe contact's phone number.stringOptional.
CompanyThe company associated with the contact.stringOptional.

Get Contact

Retrieves a contact by ID from HubSpot.

ParameterDescriptionTypeRequired/Optional
Contact IDThe unique ID of the contact to retrieve. To get this value, use Search Contacts or List Contacts and copy the id from the response.
You can also find it in the HubSpot URL when viewing a contact record. For example, in app.hubspot.com/contacts/123456789/record/0-1/777350510839, the contact ID is 777350510839.
stringRequired.

List Contacts

List Contacts from HubSpot with optional pagination and sorting.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of contacts to return. Defaults to 10.integerOptional.
AfterThe pagination cursor from the previous response, used to retrieve the next page of results.stringOptional.
SortThe field to sort results by. For example, -createdate for most recently created or -hs_lastmodifieddate for most recently modified.stringOptional.

Search Contacts

Search contacts in HubSpot with filters.

ParameterDescriptionTypeRequired/Optional
QueryThe search query to filter contacts by. Use * to return all contacts.stringOptional.
LimitThe maximum number of contacts to return.integerOptional.

Search Contacts by Email

Search contacts in HubSpot with exact email addresses.

ParameterDescriptionTypeRequired/Optional
EmailThe email address to search for.stringRequired.
LimitThe maximum number of contacts to return.integerOptional.

Update Contact

Update an existing contact in HubSpot.

ParameterDescriptionTypeRequired/Optional
Contact IDThe unique ID of the contact to update. To get this value, use Search Contacts or List Contacts and copy the id from the response.
You can also find it in the HubSpot URL when viewing a contact record. For example, in app.hubspot.com/contacts/123456789/record/0-1/777350510839, the contact ID is 777350510839.
stringRequired.
PropertiesThe contact properties to update, provided as a JSON object. For example, {"firstname": "Jane", "phone": "123456789"}.JSON mapRequired.

Delete Contact

Delete a contact from HubSpot.

ParameterDescriptionTypeRequired/Optional
Contact IDThe unique ID of the contact to delete. To get this value, use Search Contacts or List Contacts and copy the id from the response.
You can also find it in the HubSpot URL when viewing a contact record. For example, in app.hubspot.com/contacts/123456789/record/0-1/777350510839, the contact ID is 777350510839.
stringRequired.

Create Company

Create a new company in HubSpot.

ParameterDescriptionTypeRequired/Optional
NameThe name of the company.stringRequired.
DomainThe company’s website domain.stringOptional.
IndustryThe company's industry. Accepted values include:
  • INFORMATION_TECHNOLOGY_AND_SERVICES
  • COMPUTER_SOFTWARE
  • FINANCIAL_SERVICES
  • MARKETING_AND_ADVERTISING
stringOptional.
PhoneThe company's phone number.stringOptional.

Get Company

Retrieves a company by ID from HubSpot.

ParameterDescriptionTypeRequired/Optional
Company IDThe unique ID of the company to retrieve. To get this value, use Search Companies or List Companies and copy the id from the response.
You can also find it in the HubSpot URL when viewing a company record. For example, in app.hubspot.com/contacts/123456789/record/0-2/429954357457, the company ID is 429954357457.
stringRequired.

List Companies

List companies from HubSpot with optional pagination and sorting.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of companies to return. Defaults to 10.integerOptional.
AfterThe pagination cursor from the previous response, used to retrieve the next page of results.stringOptional.
SortThe field to sort results by. For example, -createdate for most recently created or -hs_lastmodifieddate for most recently modified.stringOptional.

Search Companies

Search companies in HubSpot with filters.

ParameterDescriptionTypeRequired/Optional
NameThe company name to search for. Use * to return all companies.stringOptional.
LimitThe maximum number of companies to return.integerOptional.

Search Companies by Domain

Search companies in HubSpot by domain name.

ParameterDescriptionTypeRequired/Optional
DomainThe domain name to search for. For example, example.com.stringRequired.
LimitThe maximum number of companies to return.integerOptional.

Update Company

Update an existing company in HubSpot.

ParameterDescriptionTypeRequired/Optional
Company IDThe unique ID of the company to update. To get this value, use Search Companies or List Companies and copy the id from the response.
You can also find it in the HubSpot URL when viewing a company record. For example, in app.hubspot.com/contacts/123456789/record/0-2/429954357457, the company ID is 429954357457.
stringRequired.
PropertiesThe company properties to update, provided as a JSON object. For example, {"name": "Acme Corp", "domain": "acme.com"}.JSON mapRequired.

Delete Company

Delete a company from HubSpot.

ParameterDescriptionTypeRequired/Optional
Company IDThe unique ID of the company to delete. To get this value, use Search Companies or List Companies and copy the id from the response.
You can also find it in the HubSpot URL when viewing a company record. For example, in app.hubspot.com/contacts/123456789/record/0-2/429954357457, the company ID is 429954357457.
stringRequired.

Get Deal Pipelines

Retrieves all deal pipelines and their stages from HubSpot.

This operation has no input parameters.

Get Ticket Pipelines

Retrieves all ticket pipelines and their stages from HubSpot.

This operation has no input parameters.

Create Deal

Create a new deal in HubSpot.

ParameterDescriptionTypeRequired/Optional
Deal NameThe name of the deal.stringRequired.
AmountThe monetary value of the deal.stringOptional.
Deal StageThe stage of the deal in the pipeline. Use Get Deal Pipelines to retrieve the valid stage IDs for your account. If not set, the deal will not appear in the pipeline board view in HubSpot.stringOptional.
PipelineThe pipeline the deal belongs to. Use Get Deal Pipelines to retrieve the available pipeline IDs for your account. If not set, the deal will not appear in the pipeline board view in HubSpot.stringOptional.

Get Deal

Retrieves a deal by ID from HubSpot.

ParameterDescriptionTypeRequired/Optional
Deal IdThe unique ID of the deal to retrieve. To get this value, use Search Deals or List Deals and copy the id from the response.
You can also find it in the HubSpot URL when viewing a deal record. For example, in app.hubspot.com/contacts/148480743/record/0-3/502507770065, the deal ID is 502507770065.
stringRequired.

List Deals

List deals from HubSpot with optional pagination and sorting.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of deals to return. Defaults to 10.integerOptional.
AfterThe pagination cursor from the previous response, used to retrieve the next page of results.stringOptional.
SortThe field to sort results by. For example, -createdate for most recently created or -hs_lastmodifieddate for most recently modified.stringOptional.

Search Deals

Search deals in HubSpot with filters.

ParameterDescriptionTypeRequired/Optional
Deal NameThe deal name to search for. Use * to return all deals.stringOptional.
LimitThe maximum number of deals to return.integerOptional.

Update Deal

Update an existing deal in HubSpot.

ParameterDescriptionTypeRequired/Optional
Deal IdThe unique ID of the deal to update. To get this value, use Search Deals or List Deals and copy the id from the response.
You can also find it in the HubSpot URL when viewing a deal record. For example, in app.hubspot.com/contacts/148480743/record/0-3/502507770065, the deal ID is 502507770065.
stringRequired.
PropertiesThe deal properties to update, provided as a JSON object. For example, {"dealname": "New Deal Name", "amount": "10000"}.JSON mapRequired.

Delete Deal

Delete a deal from HubSpot.

ParameterDescriptionTypeRequired/Optional
Deal IdThe unique ID of the deal to delete. To get this value, use Search Deals or List Deals and copy the id from the response.
You can also find it in the HubSpot URL when viewing a deal record. For example, in app.hubspot.com/contacts/148480743/record/0-3/502507770065, the deal ID is 502507770065.
stringRequired.

Create Ticket

Create a new ticket in HubSpot.

ParameterDescriptionTypeRequired/Optional
SubjectThe subject or name of the ticket.stringRequired.
Pipeline StageThe stage ID of the ticket in the pipeline. Use Get Ticket Pipelines to retrieve the valid stage IDs for your account. Defaults to the default pipeline.stringRequired.
ContentThe description or content of the ticket.stringOptional.
PipelineThe pipeline ID the ticket belongs to. Use Get Ticket Pipelines to retrieve the available pipeline IDs. Defaults to the default pipeline.stringOptional.

Get Ticket

Retrieves a ticket by ID from HubSpot.

ParameterDescriptionTypeRequired/Optional
Ticket IdThe unique ID of the ticket to retrieve. To get this value, use List Tickets and copy the id from the response.
You can also find it in the HubSpot URL when viewing a ticket record. For example, in app.hubspot.com/contacts/148480743/record/0-5/417248509143, the ticket ID is 417248509143.
stringRequired.

List Tickets

List tickets from HubSpot with optional pagination and sorting.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of tickets to return. Defaults to 10.integerOptional.
AfterThe pagination cursor from the previous response, used to retrieve the next page of results.stringOptional.
SortThe field to sort results by. For example, -createdate for most recently created or -hs_lastmodifieddate for most recently modified.stringOptional.

Update Ticket

Updates an existing ticket in HubSpot.

ParameterDescriptionTypeRequired/Optional
Ticket IdThe unique ID of the ticket to update. To get this value, use List Tickets and copy the id from the response.
You can also find it in the HubSpot URL when viewing a ticket record. For example, in app.hubspot.com/contacts/148480743/record/0-5/417248509143, the ticket ID is 417248509143.
stringRequired.
PropertiesThe ticket properties to update, provided as a JSON object. For example, {"subject": "Updated Ticket", "hs_pipeline_stage": "2"}.JSON mapRequired.

Delete Ticket

Delete a ticket from HubSpot.

ParameterDescriptionTypeRequired/Optional
Ticket IdThe unique ID of the ticket to delete. To get this value, use List Tickets and copy the id from the response.
You can also find it in the HubSpot URL when viewing a ticket record. For example, in app.hubspot.com/contacts/148480743/record/0-5/417248509143, the ticket ID is 417248509143.
stringRequired.

Create Note

Create a new note in HubSpot.

ParameterDescriptionTypeRequired/Optional
BodyThe content of the note.stringRequired.
TimestampThe timestamp for the note in milliseconds since epoch. If not set, defaults to the current time in the timezone of your HubSpot account.stringOptional.

Get Note

Retrieves a note by ID from HubSpot.

ParameterDescriptionTypeRequired/Optional
Note IDThe unique ID of the note to retrieve. To get this value, use List Notes and copy the id from the response.stringRequired.

List Notes

List notes from HubSpot with optional pagination and sorting.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of notes to return. Defaults to 10.integerOptional.
AfterThe pagination cursor from the previous response, used to retrieve the next page of results.stringOptional.
SortThe field to sort results by. For example, -createdate for most recently created or -hs_lastmodifieddate for most recently modified.stringOptional.

Delete Note

Delete a note from HubSpot.

ParameterDescriptionTypeRequired/Optional
Note IDThe unique ID of the note to delete. To get this value, use List Notes and copy the id from the response.stringRequired.

Create Association

Associates two CRM objects in HubSpot, such as a contact to a company or a deal to a contact.

ParameterDescriptionTypeRequired/Optional
From Object TypeThe type of the source object. Accepted values are
  • contacts
  • companies
  • deals
  • tickets
  • notes
stringRequired.
From Object IDThe unique ID of the source object. Use the corresponding List or Search operation for the object type to retrieve the ID. For example, use List Contacts to get a contact ID.stringRequired.
To Object TypeThe type of the target object. Accepted values are
  • contacts
  • companies
  • deals
  • tickets
  • notes
stringRequired.
To Object IDThe unique ID of the target object. Use the corresponding List or Search operation for the object type to retrieve the ID. For example, use List Companies to get a company ID.stringRequired.
Association Type IDThe ID that defines the association type between the two objects. Refer to the HubSpot Associations API documentation for the full list of valid type IDs.stringRequired.

Get Associations

Get associations for a CRM object.

ParameterDescriptionTypeRequired/Optional
Object TypeThe type of the object to retrieve associations for. Accepted values are
  • contacts
  • companies
  • deals
  • tickets
  • notes
stringRequired.
Object IDThe unique ID of the object to retrieve associations for. Use the corresponding List or Search operation for the object type to retrieve the ID. For example, use List Companies to get a company ID.stringRequired.
To Object TypeThe type of the associated object to retrieve. Accepted values are
  • contacts
  • companies
  • deals
  • tickets
  • notes
stringRequired.

Get Owners

List all owners in HubSpot.

This operation has no input parameters.

Get Form Fields

Gets all fields for a HubSpot form.

ParameterDescriptionTypeRequired/Optional
Form IDThe unique ID of the form. To find this, go to Marketing > Forms in HubSpot, open a form, and copy the UUID after /form/ in the URL. For example, in app.hubspot.com/submissions/123456789/form/4cf6934c-e42e-4585-a944-d709e2e685fd, the form ID is 4cf6934c-e42e-4585-a944-d709e2e685fd.stringRequired.

Submit Form

Submits data to a HubSpot form using the public submission endpoint.

ParameterDescriptionTypeRequired/Optional
Portal IdThe numeric HubSpot portal ID. To find this, select your account name in the top-right corner of HubSpot, and the ID is displayed in the dropdown, or copy the number from your any HubSpot URL. For example, in app.hubspot.com/contacts/123456789, the portal ID is 123456789.stringRequired.
Form IDThe unique ID of the form. To find this, go to Marketing > Forms in HubSpot, open a form, and copy the UUID after /form/ in the URL. For example, in app.hubspot.com/submissions/123456789/form/4cf6934c-e42e-4585-a944-d709e2e685fd, the form ID is 4cf6934c-e42e-4585-a944-d709e2e685fd.stringRequired.
FieldsThe form field values to submit, provided as a JSON object. For example, {"email": "test@example.com", "firstname": "Jane"}.JSON mapRequired.