> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot

> Reference for the Tracecat HubSpot integration: registered actions, required secrets, expected inputs, and example workflow usage.

## Add list memberships

Action ID: `tools.hubspot.add_list_memberships`

Add memberships to a specified list in your HubSpot account. This endpoint allows you to add multiple memberships to a list identified by the listId. It is useful for managing list memberships in bulk, ensuring that the specified records are included in the list. Requires the crm.lists.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/add-to-list](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/add-to-list)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**listId** `string` *required*

The unique identifier of the list to which memberships will be added.

**recordIds** `array[string]` *required*

IDs of the records to add to the list.

## Create appointment

Action ID: `tools.hubspot.create_appointment`

Create a appointment with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard appointments is provided. Requires the crm.objects.appointments.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/create-appointment](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/create-appointment)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs where the key is the property name and the value is the property value. Each property is represented as a string. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this object to other objects. Each association is defined using the PublicAssociationsForObject schema.

Default: `[]`.

## Create association

Action ID: `tools.hubspot.create_association`

Set association labels between two records.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/update-association-labeled](https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/update-association-labeled)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**association\_specs** `array[object]` *required*

Association types to set between the records. Each item has associationCategory (HUBSPOT\_DEFINED, USER\_DEFINED, or INTEGRATOR\_DEFINED) and associationTypeId.

**objectId** `string` *required*

The unique identifier of the source object.

**objectType** `string` *required*

The type of the source object to associate.

**toObjectId** `string` *required*

The unique identifier of the target object.

**toObjectType** `string` *required*

The type of the target object to associate.

## Create company

Action ID: `tools.hubspot.create_company`

Create a single company. Include a `properties` object to define [property values](https://developers.hubspot.com/docs/guides/api/crm/properties) for the company, along with an `associations` array to define [associations](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4) with other CRM records. Requires the crm.objects.companies.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/create-company](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/create-company)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

The company property values to set. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this object to other objects. Each association specifies the target object and the type of association.

Default: `[]`.

## Create contact

Action ID: `tools.hubspot.create_contact`

Create a single contact. Include a `properties` object to define [property values](https://developers.hubspot.com/docs/guides/api/crm/properties) for the contact, along with an `associations` array to define [associations](https://developers.hubspot.com/docs/guides/api/crm/associations/associations-v4) with other CRM records. Requires the crm.objects.contacts.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/create-contact](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/create-contact)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs representing the properties of the CRM object. Each key is a property name, and the value is the property's value. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this CRM object to other objects. Each association specifies the target object and the type of association.

Default: `[]`.

## Create deal

Action ID: `tools.hubspot.create_deal`

Create a deal with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard deals is provided. Requires the crm.objects.deals.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/create-deal](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/create-deal)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

Key-value pairs for setting properties for the new object. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this object to other objects. Each association is defined by a PublicAssociationsForObject schema.

Default: `[]`.

## Create default association

Action ID: `tools.hubspot.create_default_association`

Create the default (most generic) association type between two object types

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/update-association](https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/update-association)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**fromObjectId** `string` *required*

The unique identifier of the source object for the association.

**fromObjectType** `string` *required*

The type of the source object for the association.

**toObjectId** `string` *required*

The unique identifier of the target object for the association.

**toObjectType** `string` *required*

The type of the target object for the association.

## Create email

Action ID: `tools.hubspot.create_email`

Create a CRM object with the specified properties and return a copy of the object, including its ID. This endpoint is useful for adding new objects to your CRM system with predefined attributes. Documentation and examples for creating standard objects are provided to assist with the process.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/create-email](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/create-email)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs where keys are property names and values are the corresponding property values. Each property is a string. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this object to other objects. Each association is defined by a 'PublicAssociationsForObject' schema.

Default: `[]`.

## Create line item

Action ID: `tools.hubspot.create_line_item`

Create a CRM object with the specified properties and return a copy of the object, including its ID. This endpoint allows you to create standard objects in your HubSpot account, and provides documentation and examples for the process. Requires the crm.objects.line\_items.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/create-line-item](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/create-line-item)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs where keys are property names and values are the corresponding property values for the CRM object. Each property is represented as a string. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that define relationships between the object being created and other objects. Each association is represented by a PublicAssociationsForObject object.

Default: `[]`.

## Create list

Action ID: `tools.hubspot.create_list`

Create a new list in your HubSpot account using the specified parameters. This endpoint allows you to define the properties and criteria for the list, which can be used for organizing and managing contacts or other CRM objects. Requires the crm.lists.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/create-list](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/create-list)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**name** `string` *required*

A string representing the name of the list. This is used to identify the list within the system.

**objectTypeId** `string` *required*

A string indicating the type of objects that the list will contain. This helps in categorizing the list based on the object type.

**processingType** `string` *required*

A string that specifies the processing type of the list. It defines how the list is processed within the system.

**customProperties** `object | null`

An object containing custom properties for the list. These properties allow for additional customization of the list.

Default: `null`.

**filterBranch** `object | null`

An object that defines the filter criteria for the list. It determines which records are included in the list based on specified conditions.

Default: `null`.

**listFolderId** `integer | null`

A string representing the ID of the folder where the list will be stored. This helps in organizing lists into folders.

Default: `null`.

**listPermissions** `object | null`

Default: `null`.

**membershipSettings** `object | null`

Default: `null`.

## Create note

Action ID: `tools.hubspot.create_note`

Create a note with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard notes is provided.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/create-note](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/create-note)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

A map of property names to their values for the CRM object being created. Each property is represented as a string. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link the new object to other objects. Each association specifies the target object and the types of associations.

Default: `[]`.

## Create ticket

Action ID: `tools.hubspot.create_ticket`

Create a CRM object with the specified properties and return a copy of the object, including its ID. This endpoint is useful for adding new objects to your CRM system, allowing you to define the properties of the object upon creation. Requires the crm.objects.tickets.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/create-ticket](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/create-ticket)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs where keys are property names and values are the property values. Each property is a string. Map of HubSpot property internal names to values.

**associations** `array[object]`

An array of associations that link this object to other objects. Each association is defined by a 'PublicAssociationsForObject' schema.

Default: `[]`.

## Delete association

Action ID: `tools.hubspot.delete_association`

deletes all associations between two records. Removes all associations between the two records.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/delete-association](https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/delete-association)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**objectId** `string` *required*

The unique identifier of the initial object from which the association will be removed.

**objectType** `string` *required*

The type of the initial object from which the association will be removed.

**toObjectId** `string` *required*

The unique identifier of the target object to which the association will be removed.

**toObjectType** `string` *required*

The type of the target object to which the association will be removed.

## Delete company

Action ID: `tools.hubspot.delete_company`

Delete a company by ID. Deleted companies can be restored within 90 days of deletion. Deleted records are moved to the recycling bin and can be restored within 90 days. Requires the crm.objects.companies.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/delete-company](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/delete-company)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**companyId** `string` *required*

## Delete contact

Action ID: `tools.hubspot.delete_contact`

Delete a contact by ID. Deleted contacts can be restored within 90 days of deletion. Deleted records are moved to the recycling bin and can be restored within 90 days. Requires the crm.objects.contacts.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/delete-contact](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/delete-contact)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**contactId** `string` *required*

## Delete deal

Action ID: `tools.hubspot.delete_deal`

Move an Object identified by `&#123;dealId&#125;` to the recycling bin. Deleted records are moved to the recycling bin and can be restored within 90 days. Requires the crm.objects.deals.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/delete-deal](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/delete-deal)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**dealId** `string` *required*

## Delete line item

Action ID: `tools.hubspot.delete_line_item`

Move an Object identified by `&#123;objectId&#125;` to the recycling bin. This operation allows you to archive a specific CRM object, effectively removing it from active use while retaining the option to restore it later if needed. Deleted records are moved to the recycling bin and can be restored within 90 days. Requires the crm.objects.line\_items.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/delete-line-item](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/delete-line-item)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**lineItemId** `string` *required*

## Delete ticket

Action ID: `tools.hubspot.delete_ticket`

Move an object identified by `&#123;objectId&#125;` to the recycling bin. This operation allows you to archive a specific CRM object by its ID, effectively removing it from active use while retaining it in the system for potential future restoration. Deleted records are moved to the recycling bin and can be restored within 90 days. Requires the crm.objects.tickets.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/delete-ticket](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/delete-ticket)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**ticketId** `string` *required*

## Get appointment

Action ID: `tools.hubspot.get_appointment`

Read an Object identified by `&#123;appointmentId&#125;`. `&#123;appointmentId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param. Requires the crm.objects.appointments.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/get-appointment](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/get-appointment)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**objectId** `string` *required*

The unique identifier of the object to read.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get cart

Action ID: `tools.hubspot.get_cart`

Read an object identified by `&#123;objectId&#125;`. By default, `&#123;objectId&#125;` refers to the internal object ID, but it can also refer to any unique property value specified by the `idProperty` query parameter. You can control the response content using the `properties` query parameter to specify which properties to return. Requires the crm.objects.carts.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/carts/get-cart](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/carts/get-cart)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**cartId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get company

Action ID: `tools.hubspot.get_company`

Retrieve a company by its ID (`companyId`) or by a unique property (`idProperty`). You can specify what is returned using the `properties` query parameter. Requires the crm.objects.companies.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/get-company](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/get-company)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**companyId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get contact

Action ID: `tools.hubspot.get_contact`

Retrieve a contact by its ID (`contactId`) or by a unique property (`idProperty`). You can specify what is returned using the `properties` query parameter. Requires the crm.objects.contacts.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/get-contact](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/get-contact)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**contactId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get deal

Action ID: `tools.hubspot.get_deal`

Read an Object identified by `&#123;dealId&#125;`. `&#123;dealId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param. Requires the crm.objects.deals.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/get-deal](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/get-deal)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**dealId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get email

Action ID: `tools.hubspot.get_email`

Read an object identified by `&#123;objectId&#125;`. By default, `&#123;objectId&#125;` refers to the internal object ID, but it can also be any unique property value specified by the `idProperty` query parameter. You can control the data returned by specifying the `properties` query parameter.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/get-email](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/get-email)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**emailId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get line item

Action ID: `tools.hubspot.get_line_item`

Read an object identified by `objectId` in your HubSpot account. By default, `objectId` refers to the internal object ID, but you can specify a unique property using the `idProperty` query parameter. Use the `properties` query parameter to control which properties are returned in the response. Requires the crm.objects.line\_items.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/get-line-item](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/get-line-item)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**lineItemId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get list

Action ID: `tools.hubspot.get_list`

Retrieve details of a specific list in your HubSpot account using the list's unique identifier. This endpoint allows you to optionally include filters associated with the list in the response. Requires the crm.lists.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/get-list-listId](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/get-list-listId)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**listId** `string` *required*

The unique identifier of the list to retrieve.

**includeFilters** `boolean | null`

A boolean indicating whether to include the list's filters in the response. Defaults to false.

Default: `null`.

## Get list by name

Action ID: `tools.hubspot.get_list_by_name`

Retrieve a specific list by its name and object type ID in your HubSpot account. This endpoint allows you to access the details of a list, which can be useful for managing and analyzing your CRM data. You can also choose to include filters in the response. Requires the crm.lists.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/get-list](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/get-list)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**listName** `string` *required*

The name of the list to retrieve.

**objectTypeId** `string` *required*

The unique identifier of the object type associated with the list.

**includeFilters** `boolean | null`

A boolean indicating whether to include filters in the response. Defaults to false.

Default: `null`.

## Get marketing event

Action ID: `tools.hubspot.get_marketing_event`

Returns the details of a Marketing Event with the specified objectId, if it exists. Requires the crm.objects.marketing\_events.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/marketing/marketing-events/get-marketing-event-objectId](https://developers.hubspot.com/docs/api-reference/latest/marketing/marketing-events/get-marketing-event-objectId)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**objectId** `string` *required*

The internal id of the marketing event in HubSpot.

## Get note

Action ID: `tools.hubspot.get_note`

Read an Object identified by `&#123;noteId&#125;`. `&#123;noteId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/get-note](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/get-note)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**noteId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get quote

Action ID: `tools.hubspot.get_quote`

Read an Object identified by `&#123;quoteId&#125;`. `&#123;quoteId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param. Requires the crm.objects.quotes.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/get-quote](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/get-quote)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**quoteId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get ticket

Action ID: `tools.hubspot.get_ticket`

Read an object identified by `objectId`. The `objectId` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query parameter. You can control what is returned via the `properties` query parameter. This endpoint allows you to retrieve detailed information about a specific CRM object, including its properties, associations, and history. Requires the crm.objects.tickets.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/get-ticket](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/get-ticket)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**ticketId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## Get user

Action ID: `tools.hubspot.get_user`

Read an Object identified by `&#123;userId&#125;`. `&#123;userId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param. Requires the crm.objects.users.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/users/get-user](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/users/get-user)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**userId** `string` *required*

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

## List appointments

Action ID: `tools.hubspot.list_appointments`

Read a page of appointments. Control what is returned via the `properties` query param. Requires the crm.objects.appointments.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/get-appointments](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/get-appointments)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of appointments that can be read by a single request.

Default: `null`.

## List association labels

Action ID: `tools.hubspot.list_association_labels`

Retrieve all labels that describe the relationships between two specified CRM object types. These labels provide context about the nature of the associations.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associations-schema/labels/get-associations-label](https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associations-schema/labels/get-associations-label)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**fromObjectType** `string` *required*

The type of the source object for the association.

**toObjectType** `string` *required*

The type of the target object for the association.

## List associations

Action ID: `tools.hubspot.list_associations`

Batch read associations for objects to specific object type. The 'after' field in a returned paging object can be added alongside the 'id' to retrieve the next page of associations from that objectId. The 'link' field is deprecated and should be ignored. Note: The 'paging' field will only be present if there are more pages and absent otherwise.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/batch/get-associations](https://developers.hubspot.com/docs/api-reference/latest/crm/associations/associate-records/batch/get-associations)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**fromObjectType** `string` *required*

The type of the source object from which associations are being read.

**inputs** `array[object]` *required*

An array of PublicFetchAssociationsBatchRequest objects, each specifying the details for fetching associations for a particular object. This property is required.

**toObjectType** `string` *required*

The type of the target object to which associations are being read.

## List carts

Action ID: `tools.hubspot.list_carts`

Read a page of objects of the specified type. You can control the data returned by specifying the properties you want to include in the response. This endpoint is useful for retrieving a list of CRM objects with optional filtering and pagination capabilities. Requires the crm.objects.carts.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/carts/get-carts](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/carts/get-carts)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List companies

Action ID: `tools.hubspot.list_companies`

Retrieve all companies, using query parameters to control the information that gets returned. Requires the crm.objects.companies.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/get-companies](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/get-companies)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of companies that can be read by a single request.

Default: `null`.

## List contacts

Action ID: `tools.hubspot.list_contacts`

Retrieve all contacts, using query parameters to specify the information that gets returned. Requires the crm.objects.contacts.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/get-contacts](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/get-contacts)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of contacts that can be read by a single request.

Default: `null`.

## List deals

Action ID: `tools.hubspot.list_deals`

Read a page of deals. Control what is returned via the `properties` query param. Requires the crm.objects.deals.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/get-deals](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/get-deals)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List emails

Action ID: `tools.hubspot.list_emails`

Read a page of objects of a specified type in your HubSpot account. You can control the data returned by specifying properties, associations, and whether to include archived records. This endpoint is useful for retrieving a list of CRM objects with specific details and associations.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/get-emails](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/get-emails)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List line items

Action ID: `tools.hubspot.list_line_items`

Read a page of objects of a specified type in your HubSpot account. You can control the data returned by specifying desired properties through query parameters. This endpoint is useful for retrieving a list of CRM objects, such as contacts or deals, with optional filtering and pagination. Requires the crm.objects.line\_items.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/get-line-items](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/get-line-items)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List marketing events

Action ID: `tools.hubspot.list_marketing_events`

Retrieve a list of marketing events for the specified API version. This endpoint supports pagination to navigate through large sets of data. Use this to access marketing event details in a paginated format. Requires the crm.objects.marketing\_events.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/marketing/marketing-events/get-marketing-events](https://developers.hubspot.com/docs/api-reference/latest/marketing/marketing-events/get-marketing-events)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The cursor indicating the position of the last retrieved item.

Default: `null`.

**limit** `integer | null`

The limit for response size. The default value is 10, the max number is 100

Default: `null`.

## List memberships

Action ID: `tools.hubspot.list_memberships`

Retrieve the memberships of a specific list in your HubSpot account. This endpoint allows you to paginate through the list memberships using cursor-based pagination. It is useful for obtaining detailed membership information for a given list. Requires the crm.lists.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/get-memberships-by-id](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/get-memberships-by-id)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**listId** `string` *required*

The unique identifier of the list whose memberships are to be retrieved.

**after** `string | null`

A cursor token for pagination. Use the value from the previous response's paging.next.after field to retrieve the next set of results.

Default: `null`.

**before** `string | null`

A cursor token for pagination. Use this to retrieve the previous set of results.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page. Defaults to 100.

Default: `null`.

## List notes

Action ID: `tools.hubspot.list_notes`

Read a page of notes. Control what is returned via the `properties` query param.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/get-notes](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/get-notes)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List owners

Action ID: `tools.hubspot.list_owners`

Retrieve a paginated list of owners from your HubSpot account. This endpoint allows filtering by email and supports pagination through the 'after' parameter. You can also specify the maximum number of results per page and choose to include archived owners in the response. Requires the crm.objects.owners.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/owners/get-owners](https://developers.hubspot.com/docs/api-reference/latest/crm/owners/get-owners)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**email** `string | null`

Filter by email address (optional)

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

## List properties

Action ID: `tools.hubspot.list_properties`

Read all existing properties for the specified object type and HubSpot account.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/properties/get-properties](https://developers.hubspot.com/docs/api-reference/latest/crm/properties/get-properties)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**objectType** `string` *required*

The type of CRM object for which properties are being retrieved, such as 'contacts', 'companies', etc.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**dataSensitivity** `string | null`

Filter properties based on data sensitivity level. Valid values are 'non\_sensitive', 'sensitive', and 'highly\_sensitive'. Defaults to 'non\_sensitive'.

Default: `null`.

**locale** `string | null`

Specify the locale to retrieve properties in a particular language or regional format.

Default: `null`.

**properties** `string | null`

A comma-separated list of property names to include in the response.

Default: `null`.

## List quotes

Action ID: `tools.hubspot.list_quotes`

Read a page of quotes. Control what is returned via the `properties` query param. Requires the crm.objects.quotes.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/get-quotes](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/get-quotes)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List tickets

Action ID: `tools.hubspot.list_tickets`

Read a page of objects of a specified type in your HubSpot account. You can control the data returned by specifying the properties you want to include in the response. This endpoint supports pagination and allows you to retrieve associated object IDs and archived records. Requires the crm.objects.tickets.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/get-tickets](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/get-tickets)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## List users

Action ID: `tools.hubspot.list_users`

Read a page of users. Control what is returned via the `properties` query param. Requires the crm.objects.users.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/users/get-users](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/users/get-users)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

Default: `null`.

**archived** `boolean | null`

Whether to return only results that have been archived.

Default: `null`.

**associations** `array[string] | null`

A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

Default: `null`.

**limit** `integer | null`

The maximum number of results to display per page.

Default: `null`.

**properties** `array[string] | null`

A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

Default: `null`.

**propertiesWithHistory** `array[string] | null`

A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

Default: `null`.

## Remove list memberships

Action ID: `tools.hubspot.remove_list_memberships`

Remove memberships from a specific list in your HubSpot account. This operation is useful for managing list memberships by removing specified records from the list. The request requires a list of record IDs to be removed from the specified list. Requires the crm.lists.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/remove-from-list](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/memberships/remove-from-list)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**listId** `string` *required*

The unique identifier of the list from which memberships will be removed.

**recordIds** `array[string]` *required*

IDs of the records to remove from the list.

## Search companies

Action ID: `tools.hubspot.search_companies`

Search for companies by filtering on properties, searching through associations, and sorting results. Requires the crm.objects.companies.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/search/search-companies](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/search/search-companies)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token to retrieve the next set of results.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to filter the search results. Each filter group contains a set of filters that are applied together.

Default: `[]`.

**limit** `integer | null`

An integer specifying the maximum number of results to return.

Default: `null`.

**properties** `array[string]`

An array of strings specifying the properties to be returned in the search results.

Default: `[]`.

**query** `string | null`

A string representing the search query to be applied.

Default: `null`.

**sorts** `array[string]`

An array of strings specifying the sorting order of the search results.

Default: `[]`.

## Search contacts

Action ID: `tools.hubspot.search_contacts`

Search for contacts by filtering on properties, searching through associations, and sorting results. Requires the crm.objects.contacts.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/search/search-contacts](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/search/search-contacts)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token to retrieve results after a specific point in the result set.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to narrow down the search results. Each filter group contains a set of filters that are applied together.

Default: `[]`.

**limit** `integer | null`

An integer indicating the maximum number of results to return.

Default: `null`.

**properties** `array[string]`

An array of strings specifying which properties of the objects should be included in the search results.

Default: `[]`.

**query** `string | null`

A string representing the search query to be applied to the objects.

Default: `null`.

**sorts** `array[string]`

An array of strings specifying the sorting order of the search results.

Default: `[]`.

## Search deals

Action ID: `tools.hubspot.search_deals`

Search for deals using specified criteria and filters. Requires the crm.objects.deals.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/search-deals](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/search-deals)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A paging cursor token for retrieving subsequent pages.

Default: `null`.

**filterGroups** `array[object]`

Up to 6 groups of filters defining additional query criteria.

Default: `[]`.

**limit** `integer | null`

The maximum results to return, up to 200 objects.

Default: `null`.

**properties** `array[string]`

A list of property names to include in the response.

Default: `[]`.

**query** `string | null`

The search query string, up to 3000 characters.

Default: `null`.

**sorts** `array[string]`

Specifies sorting order based on object properties.

Default: `[]`.

## Search emails

Action ID: `tools.hubspot.search_emails`

Search for CRM objects of a specified type using various filters and criteria. This endpoint allows you to perform complex searches by specifying filter groups, sorting options, and properties to be included in the response. It is useful for retrieving specific objects based on detailed search parameters.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/search/search-emails](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/emails/search/search-emails)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token for retrieving the next set of results. This is used for pagination in search results.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to specify the criteria for filtering the search results. Each filter group contains multiple filters that are applied together.

Default: `[]`.

**limit** `integer | null`

An integer indicating the maximum number of results to return. This helps to control the size of the result set.

Default: `null`.

**properties** `array[string]`

An array of strings specifying the properties of the CRM objects to be returned in the search results. If a specified property is not present on the objects, it will be ignored.

Default: `[]`.

**query** `string | null`

A string representing a search query to match against the CRM objects. This is used to perform a text-based search.

Default: `null`.

**sorts** `array[string]`

An array of strings indicating the sorting order of the search results. Each string specifies a property to sort by, optionally prefixed with a '-' to indicate descending order.

Default: `[]`.

## Search line items

Action ID: `tools.hubspot.search_line_items`

Search for CRM objects of a specified type using various filters and criteria. This endpoint allows you to perform complex searches and retrieve objects that match the specified conditions. It is useful for finding specific records based on property values or other attributes. Requires the crm.objects.line\_items.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/search/search-line-items](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/search/search-line-items)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token for fetching the next set of results in a paginated response.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to specify the search criteria. Each filter group contains a set of filters that define the conditions objects must meet to be included in the search results.

Default: `[]`.

**limit** `integer | null`

An integer specifying the maximum number of results to return per page.

Default: `null`.

**properties** `array[string]`

An array of strings indicating which properties of the objects should be returned in the search results.

Default: `[]`.

**query** `string | null`

A string representing a search query to filter the objects based on specific criteria.

Default: `null`.

**sorts** `array[string]`

An array of strings specifying the properties by which the search results should be sorted.

Default: `[]`.

## Search lists

Action ID: `tools.hubspot.search_lists`

Search for lists within your HubSpot account using various criteria. This endpoint allows you to filter and retrieve lists based on specific search parameters, making it easier to manage and organize your lists effectively. Requires the crm.lists.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/lists/search/search-lists](https://developers.hubspot.com/docs/api-reference/latest/crm/lists/search/search-lists)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**additionalProperties** `array[string]`

An array of strings representing additional properties to include in the search.

Default: `[]`.

**count** `integer | null`

An integer specifying the number of results to return.

Default: `null`.

**listIds** `array[string]`

An array of strings specifying the IDs of the lists to search.

Default: `[]`.

**objectTypeId** `string | null`

A string representing the object type ID to filter the lists.

Default: `null`.

**offset** `integer`

An integer used for pagination, indicating the starting point for the search results.

Default: `0`.

**processingTypes** `array[string]`

An array of strings indicating the types of processing to apply to the search results.

Default: `[]`.

**query** `string | null`

A string representing the search query to filter the lists.

Default: `null`.

**sort** `string | null`

A string specifying the sorting criteria for the search results.

Default: `null`.

## Search notes

Action ID: `tools.hubspot.search_notes`

Execute a search for notes using filters, sorting options, and other query parameters to refine the results. This endpoint allows for complex queries to locate specific notes within the CRM system.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/search/search-notes](https://developers.hubspot.com/docs/api-reference/latest/crm/activities/notes/search/search-notes)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token of the last successfully read resource. It is used for pagination to retrieve the next set of results.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to specify the search criteria. Each filter group contains filters that determine which objects are included in the search results.

Default: `[]`.

**limit** `integer | null`

An integer specifying the maximum number of results to return. It defines the page size for the search results.

Default: `null`.

**properties** `array[string]`

An array of strings specifying which properties of the CRM objects should be returned in the search results.

Default: `[]`.

**query** `string | null`

A string representing a search query to match against the CRM objects.

Default: `null`.

**sorts** `array[string]`

An array of strings specifying the sorting order of the search results. Each string represents a property to sort by, optionally prefixed with a '-' to indicate descending order.

Default: `[]`.

## Search quotes

Action ID: `tools.hubspot.search_quotes`

Execute a search for quotes based on the criteria defined in the request body, such as filters, properties, and sorting options. This endpoint allows for detailed querying of quote records to retrieve specific data sets. Requires the crm.objects.quotes.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/search/search-quotes](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/quotes/search/search-quotes)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string representing the paging cursor token to retrieve the next set of results.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups used to specify the criteria for the search. Each filter group contains a set of filters that are combined using logical AND.

Default: `[]`.

**limit** `integer | null`

An integer specifying the maximum number of results to return.

Default: `null`.

**properties** `array[string]`

An array of strings specifying the properties to be returned in the search results.

Default: `[]`.

**query** `string | null`

A string representing the search query to be applied across the specified properties.

Default: `null`.

**sorts** `array[string]`

An array of strings indicating the fields and order by which the search results should be sorted.

Default: `[]`.

## Search tickets

Action ID: `tools.hubspot.search_tickets`

Search for CRM objects of a specified type using various filters and criteria. This endpoint allows you to perform complex searches by specifying filter groups, properties, and sorting options. It is useful for retrieving specific objects based on detailed search parameters. Requires the crm.objects.tickets.read scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/search/search-tickets](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/search/search-tickets)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**after** `string | null`

A string used as a paging cursor token to retrieve the next set of results after a given object.

Default: `null`.

**filterGroups** `array[object]`

An array of filter groups, each containing a set of filters to apply to the search. Each filter group is combined using logical AND, while groups themselves are combined using logical OR.

Default: `[]`.

**limit** `integer | null`

An integer specifying the maximum number of results to return.

Default: `null`.

**properties** `array[string]`

An array of strings indicating which properties should be included in the search results.

Default: `[]`.

**query** `string | null`

A string used to perform a full-text search across searchable properties.

Default: `null`.

**sorts** `array[string]`

An array of strings specifying the properties by which the search results should be sorted.

Default: `[]`.

## Update appointment

Action ID: `tools.hubspot.update_appointment`

Perform a partial update of an Object identified by `&#123;appointmentId&#125;`or optionally a unique property value as specified by the `idProperty` query param. `&#123;appointmentId&#125;` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. Requires the crm.objects.appointments.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/update-appointment](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/appointments/update-appointment)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**objectId** `string` *required*

The unique identifier of the object to update.

**properties** `object` *required*

An object containing key-value pairs where each key is a property name and each value is the property's new value. All properties are strings. Map of HubSpot property internal names to values.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

## Update company

Action ID: `tools.hubspot.update_company`

Update a company by ID (`companyId`) or unique property value (`idProperty`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. Requires the crm.objects.companies.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/update-company](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/companies/update-company)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**companyId** `string` *required*

**properties** `object` *required*

The company property values to set. Map of HubSpot property internal names to values.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

## Update contact

Action ID: `tools.hubspot.update_contact`

Update an existing contact, identified by ID or email/unique property value. To identify a contact by ID, include the ID in the request URL path. To identify a contact by their email or other unique property, include the email/property value in the request URL path, and add the `idProperty` query parameter (`/crm/v3/objects/contacts/jon@website.com?idProperty=email`). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. Requires the crm.objects.contacts.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/update-contact](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/contacts/update-contact)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**contactId** `string` *required*

**properties** `object` *required*

An object containing key-value pairs representing the properties of the CRM object to be updated. Each key is a property name, and each value is the property's new value, both as strings. Map of HubSpot property internal names to values.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

## Update deal

Action ID: `tools.hubspot.update_deal`

Perform a partial update of an Object identified by `&#123;dealId&#125;`or optionally a unique property value as specified by the `idProperty` query param. `&#123;dealId&#125;` refers to the internal object ID by default, and the `idProperty` query param refers to a property whose values are unique for the object. Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. Requires the crm.objects.deals.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/update-deal](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/deals/update-deal)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**dealId** `string` *required*

**properties** `object` *required*

Key value pairs representing the properties of the object. Map of HubSpot property internal names to values.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

## Update line item

Action ID: `tools.hubspot.update_line_item`

Perform a partial update of an Object identified by `&#123;objectId&#125;`. `&#123;objectId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string. Requires the crm.objects.line\_items.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/update-line-item](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/line-items/update-line-item)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**lineItemId** `string` *required*

**properties** `object` *required*

An object containing key-value pairs where keys are property names and values are the new property values. Each property value is a string. Map of HubSpot property internal names to values.

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.

## Update ticket

Action ID: `tools.hubspot.update_ticket`

Perform a partial update of an Object identified by `&#123;objectId&#125;`. `&#123;objectId&#125;` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string. Requires the crm.objects.tickets.write scope.

Reference: [https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/update-ticket](https://developers.hubspot.com/docs/api-reference/latest/crm/objects/tickets/update-ticket)

### Secrets

Optional secrets:

* `hubspot_oauth`: OAuth token `HUBSPOT_USER_TOKEN`.
* `hubspot`: required values `HUBSPOT_ACCESS_TOKEN`.

### Input fields

**properties** `object` *required*

An object containing key-value pairs where each key is a property name and each value is the property's new value. All properties to be updated must be included here. Map of HubSpot property internal names to values.

**ticketId** `string` *required*

**idProperty** `string | null`

The name of a property whose values are unique for this object type

Default: `null`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.