KosmoKrator

productivity

HubSpot CLI for AI Agents

Use the HubSpot CLI from KosmoKrator to call HubSpot tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

25 functions 12 read 13 write Bearer token auth

HubSpot CLI Setup

HubSpot can be configured headlessly with `kosmokrator integrations:configure hubspot`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure hubspot --set access_token="$HUBSPOT_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor hubspot --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token HUBSPOT_ACCESS_TOKEN Secret secret yes Private App Access Token

Call HubSpot Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call hubspot.hubspot_create_contact '{
  "first_name": "example_first_name",
  "last_name": "example_last_name",
  "email": "example_email",
  "phone": "example_phone",
  "company": "example_company",
  "properties": "example_properties"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:hubspot hubspot_create_contact '{
  "first_name": "example_first_name",
  "last_name": "example_last_name",
  "email": "example_email",
  "phone": "example_phone",
  "company": "example_company",
  "properties": "example_properties"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs hubspot --json
kosmo integrations:docs hubspot.hubspot_create_contact --json
kosmo integrations:schema hubspot.hubspot_create_contact --json
kosmo integrations:search "HubSpot" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to HubSpot.

hubspot.hubspot_create_contact

Write write

Create a new contact in HubSpot CRM. Supports firstname, lastname, email, phone, company, and any additional custom properties. Returns the created contact with its HubSpot ID and properties.

Parameters
first_name, last_name, email, phone, company, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_contact '{"first_name":"example_first_name","last_name":"example_last_name","email":"example_email","phone":"example_phone","company":"example_company","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_contact '{"first_name":"example_first_name","last_name":"example_last_name","email":"example_email","phone":"example_phone","company":"example_company","properties":"example_properties"}' --json

hubspot.hubspot_get_contact

Read read

Retrieve a HubSpot contact by its ID. Returns the contact's ID, properties, and associated data. Optionally specify which properties to include.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_get_contact '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_get_contact '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_update_contact

Write write

Update an existing HubSpot contact by ID. Provide a properties object with the fields to update (e.g., {"firstname": "Jane", "phone": "555-0100"}). Returns the updated contact.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_update_contact '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_update_contact '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_search_contacts

Read read

Search HubSpot contacts using filter groups and/or a text query. Use filterGroups for structured queries (e.g., email equals "[email protected]"). Use query for full-text search across searchable properties. Supports pagination with limit and after parameters.

Parameters
query, filter_groups, properties, limit, after

Generic CLI call

kosmo integrations:call hubspot.hubspot_search_contacts '{"query":"example_query","filter_groups":"example_filter_groups","properties":"example_properties","limit":1,"after":"example_after"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_search_contacts '{"query":"example_query","filter_groups":"example_filter_groups","properties":"example_properties","limit":1,"after":"example_after"}' --json

hubspot.hubspot_delete_contact

Write write

Delete a HubSpot contact by ID. Permanently removes the contact from HubSpot CRM. This action cannot be undone.

Parameters
id

Generic CLI call

kosmo integrations:call hubspot.hubspot_delete_contact '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_delete_contact '{"id":"example_id"}' --json

hubspot.hubspot_create_or_update_contact

Write write

Create or update a HubSpot contact by email. First searches for an existing contact matching the email. If found, updates it. If not found, creates a new contact. Supports firstname, lastname, phone, company, and any additional custom properties.

Parameters
email, first_name, last_name, phone, company, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_or_update_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","phone":"example_phone","company":"example_company","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_or_update_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","phone":"example_phone","company":"example_company","properties":"example_properties"}' --json

hubspot.hubspot_create_company

Write write

Create a new company in HubSpot CRM. Supports name, domain, and any additional custom properties. Returns the created company with its HubSpot ID and properties.

Parameters
name, domain, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_company '{"name":"example_name","domain":"example_domain","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_company '{"name":"example_name","domain":"example_domain","properties":"example_properties"}' --json

hubspot.hubspot_get_company

Read read

Retrieve a HubSpot company by its ID. Returns the company's ID, properties, and associated data. Optionally specify which properties to include.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_get_company '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_get_company '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_update_company

Write write

Update an existing HubSpot company by ID. Provide a properties object with the fields to update (e.g., {"name": "Acme Corp", "domain": "acme.com"}). Returns the updated company.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_update_company '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_update_company '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_search_companies

Read read

Search HubSpot companies using filter groups and/or a text query. Use filterGroups for structured queries (e.g., domain equals "acme.com"). Use query for full-text search across searchable properties. Supports pagination with limit and after parameters.

Parameters
query, filter_groups, properties, limit, after

Generic CLI call

kosmo integrations:call hubspot.hubspot_search_companies '{"query":"example_query","filter_groups":"example_filter_groups","properties":"example_properties","limit":1,"after":"example_after"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_search_companies '{"query":"example_query","filter_groups":"example_filter_groups","properties":"example_properties","limit":1,"after":"example_after"}' --json

hubspot.hubspot_create_deal

Write write

Create a new deal in HubSpot CRM. Supports dealname, amount, pipeline, dealstage, closedate, and any additional custom properties. Returns the created deal with its HubSpot ID and properties.

Parameters
dealname, amount, pipeline, dealstage, closedate, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_deal '{"dealname":"example_dealname","amount":"example_amount","pipeline":"example_pipeline","dealstage":"example_dealstage","closedate":"example_closedate","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_deal '{"dealname":"example_dealname","amount":"example_amount","pipeline":"example_pipeline","dealstage":"example_dealstage","closedate":"example_closedate","properties":"example_properties"}' --json

hubspot.hubspot_get_deal

Read read

Retrieve a HubSpot deal by its ID. Returns the deal's ID, properties, and associated data. Optionally specify which properties to include.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_get_deal '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_get_deal '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_update_deal

Write write

Update an existing HubSpot deal by ID. Provide a properties object with the fields to update (e.g., {"dealstage": "closedwon", "amount": "5000"}). Returns the updated deal.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_update_deal '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_update_deal '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_list_deals

Read read

List deals in HubSpot CRM with cursor-based pagination. Optionally specify properties to include and control page size. Use the "after" cursor from a previous response to fetch the next page.

Parameters
limit, after, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_deals '{"limit":1,"after":"example_after","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_deals '{"limit":1,"after":"example_after","properties":"example_properties"}' --json

hubspot.hubspot_create_ticket

Write write

Create a new ticket in HubSpot CRM. Supports subject, content, hs_pipeline, hs_pipeline_stage, and any additional custom properties. Returns the created ticket with its HubSpot ID and properties.

Parameters
subject, content, hs_pipeline, hs_pipeline_stage, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_ticket '{"subject":"example_subject","content":"example_content","hs_pipeline":"example_hs_pipeline","hs_pipeline_stage":"example_hs_pipeline_stage","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_ticket '{"subject":"example_subject","content":"example_content","hs_pipeline":"example_hs_pipeline","hs_pipeline_stage":"example_hs_pipeline_stage","properties":"example_properties"}' --json

hubspot.hubspot_get_ticket

Read read

Retrieve a HubSpot ticket by its ID. Returns the ticket's ID, properties, and associated data. Optionally specify which properties to include.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_get_ticket '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_get_ticket '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_update_ticket

Write write

Update an existing HubSpot ticket by ID. Provide a properties object with the fields to update (e.g., {"subject": "New subject", "hs_pipeline_stage": "2"}). Returns the updated ticket.

Parameters
id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_update_ticket '{"id":"example_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_update_ticket '{"id":"example_id","properties":"example_properties"}' --json

hubspot.hubspot_create_association

Write write

Create an association between two HubSpot CRM objects. For example, associate a contact to a company, or a deal to a company. Specify the from/to object types (contacts, companies, deals, tickets), their IDs, and the association type. Common association types: contact_to_company, company_to_contact, deal_to_company, ticket_to_contact.

Parameters
from_type, from_id, to_type, to_id, association_type

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_association '{"from_type":"example_from_type","from_id":"example_from_id","to_type":"example_to_type","to_id":"example_to_id","association_type":"example_association_type"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_association '{"from_type":"example_from_type","from_id":"example_from_id","to_type":"example_to_type","to_id":"example_to_id","association_type":"example_association_type"}' --json

hubspot.hubspot_list_associations

Read read

List associations from a HubSpot CRM object to another object type. For example, list all companies associated with a specific contact. Returns the associated object IDs and association types.

Parameters
from_type, from_id, to_type

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_associations '{"from_type":"example_from_type","from_id":"example_from_id","to_type":"example_to_type"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_associations '{"from_type":"example_from_type","from_id":"example_from_id","to_type":"example_to_type"}' --json

hubspot.hubspot_list_owners

Read read

List HubSpot CRM owners (users). Returns owner IDs, names, and emails. Useful for assigning owners to contacts, deals, and tickets. Supports pagination with limit and after parameters.

Parameters
limit, after

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_owners '{"limit":1,"after":"example_after"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_owners '{"limit":1,"after":"example_after"}' --json

hubspot.hubspot_create_engagement

Write write

Create an engagement in HubSpot CRM (note, task, or meeting). Specify the type and provide the relevant properties. For notes: body (HTML content). For tasks: hs_task_body, hs_task_subject, hs_task_status. For meetings: hs_meeting_title, hs_meeting_body, hs_meeting_start_time, hs_meeting_end_time.

Parameters
type, body, timestamp, owner_id, properties

Generic CLI call

kosmo integrations:call hubspot.hubspot_create_engagement '{"type":"example_type","body":"example_body","timestamp":"example_timestamp","owner_id":"example_owner_id","properties":"example_properties"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_create_engagement '{"type":"example_type","body":"example_body","timestamp":"example_timestamp","owner_id":"example_owner_id","properties":"example_properties"}' --json

hubspot.hubspot_list_pipelines

Read read

List HubSpot CRM pipelines for a given object type. Returns all pipelines and their stages. Commonly used for deals and tickets. Use the object type "deals" or "tickets" to get the respective pipelines.

Parameters
object_type

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_pipelines '{"object_type":"example_object_type"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_pipelines '{"object_type":"example_object_type"}' --json

hubspot.hubspot_list_properties

Read read

List HubSpot CRM property definitions for a given object type. Returns all properties including their name, label, type, and field type. Useful for discovering available properties for contacts, companies, deals, or tickets.

Parameters
object_type

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_properties '{"object_type":"example_object_type"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_properties '{"object_type":"example_object_type"}' --json

hubspot.hubspot_add_contact_to_list

Write write

Add contacts to a HubSpot marketing list. Provide either contact_ids (HubSpot vid IDs) or emails (email addresses), or both. Contacts that are already in the list are silently skipped.

Parameters
list_id, contact_ids, emails

Generic CLI call

kosmo integrations:call hubspot.hubspot_add_contact_to_list '{"list_id":"example_list_id","contact_ids":"example_contact_ids","emails":"example_emails"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_add_contact_to_list '{"list_id":"example_list_id","contact_ids":"example_contact_ids","emails":"example_emails"}' --json

hubspot.hubspot_list_forms

Read read

List HubSpot marketing forms. Returns form IDs, names, types, and creation timestamps. Supports pagination with limit and after parameters.

Parameters
limit, after

Generic CLI call

kosmo integrations:call hubspot.hubspot_list_forms '{"limit":1,"after":"example_after"}' --json

Provider shortcut

kosmo integrations:hubspot hubspot_list_forms '{"limit":1,"after":"example_after"}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

hubspot.hubspot_create_contact

Create a new contact in HubSpot CRM. Supports firstname, lastname, email, phone, company, and any additional custom properties. Returns the created contact with its HubSpot ID and properties.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_contact --json
ParameterTypeRequiredDescription
first_name string no Contact first name.
last_name string no Contact last name.
email string no Contact email address.
phone string no Contact phone number.
company string no Contact company name.
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_get_contact

Retrieve a HubSpot contact by its ID. Returns the contact's ID, properties, and associated data. Optionally specify which properties to include.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_get_contact --json
ParameterTypeRequiredDescription
id string yes HubSpot contact ID.
properties array no List of property names to include (e.g., ["firstname","email"]).

hubspot.hubspot_update_contact

Update an existing HubSpot contact by ID. Provide a properties object with the fields to update (e.g., {"firstname": "Jane", "phone": "555-0100"}). Returns the updated contact.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_update_contact --json
ParameterTypeRequiredDescription
id string yes HubSpot contact ID to update.
properties object yes Key-value map of properties to update (e.g., {"firstname": "Jane"}).

hubspot.hubspot_search_contacts

Search HubSpot contacts using filter groups and/or a text query. Use filterGroups for structured queries (e.g., email equals "[email protected]"). Use query for full-text search across searchable properties. Supports pagination with limit and after parameters.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_search_contacts --json
ParameterTypeRequiredDescription
query string no Full-text search query.
filter_groups array no Array of filter groups, each containing filters with propertyName, operator, and value.
properties array no List of property names to include in results.
limit integer no Maximum number of results to return (default 10, max 100).
after string no Pagination cursor from a previous response.

hubspot.hubspot_delete_contact

Delete a HubSpot contact by ID. Permanently removes the contact from HubSpot CRM. This action cannot be undone.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_delete_contact --json
ParameterTypeRequiredDescription
id string yes HubSpot contact ID to delete.

hubspot.hubspot_create_or_update_contact

Create or update a HubSpot contact by email. First searches for an existing contact matching the email. If found, updates it. If not found, creates a new contact. Supports firstname, lastname, phone, company, and any additional custom properties.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_or_update_contact --json
ParameterTypeRequiredDescription
email string yes Contact email address used for lookup.
first_name string no Contact first name.
last_name string no Contact last name.
phone string no Contact phone number.
company string no Contact company name.
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_create_company

Create a new company in HubSpot CRM. Supports name, domain, and any additional custom properties. Returns the created company with its HubSpot ID and properties.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_company --json
ParameterTypeRequiredDescription
name string no Company name.
domain string no Company website domain.
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_get_company

Retrieve a HubSpot company by its ID. Returns the company's ID, properties, and associated data. Optionally specify which properties to include.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_get_company --json
ParameterTypeRequiredDescription
id string yes HubSpot company ID.
properties array no List of property names to include.

hubspot.hubspot_update_company

Update an existing HubSpot company by ID. Provide a properties object with the fields to update (e.g., {"name": "Acme Corp", "domain": "acme.com"}). Returns the updated company.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_update_company --json
ParameterTypeRequiredDescription
id string yes HubSpot company ID to update.
properties object yes Key-value map of properties to update.

hubspot.hubspot_search_companies

Search HubSpot companies using filter groups and/or a text query. Use filterGroups for structured queries (e.g., domain equals "acme.com"). Use query for full-text search across searchable properties. Supports pagination with limit and after parameters.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_search_companies --json
ParameterTypeRequiredDescription
query string no Full-text search query.
filter_groups array no Array of filter groups, each containing filters with propertyName, operator, and value.
properties array no List of property names to include in results.
limit integer no Maximum number of results to return (default 10, max 100).
after string no Pagination cursor from a previous response.

hubspot.hubspot_create_deal

Create a new deal in HubSpot CRM. Supports dealname, amount, pipeline, dealstage, closedate, and any additional custom properties. Returns the created deal with its HubSpot ID and properties.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_deal --json
ParameterTypeRequiredDescription
dealname string no Deal name.
amount string no Deal amount.
pipeline string no Pipeline ID or internal name.
dealstage string no Deal stage ID or internal name.
closedate string no Expected close date (ISO 8601 or milliseconds timestamp).
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_get_deal

Retrieve a HubSpot deal by its ID. Returns the deal's ID, properties, and associated data. Optionally specify which properties to include.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_get_deal --json
ParameterTypeRequiredDescription
id string yes HubSpot deal ID.
properties array no List of property names to include.

hubspot.hubspot_update_deal

Update an existing HubSpot deal by ID. Provide a properties object with the fields to update (e.g., {"dealstage": "closedwon", "amount": "5000"}). Returns the updated deal.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_update_deal --json
ParameterTypeRequiredDescription
id string yes HubSpot deal ID to update.
properties object yes Key-value map of properties to update.

hubspot.hubspot_list_deals

List deals in HubSpot CRM with cursor-based pagination. Optionally specify properties to include and control page size. Use the "after" cursor from a previous response to fetch the next page.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_deals --json
ParameterTypeRequiredDescription
limit integer no Maximum number of deals to return (default 10, max 100).
after string no Pagination cursor from a previous response.
properties array no List of property names to include in results.

hubspot.hubspot_create_ticket

Create a new ticket in HubSpot CRM. Supports subject, content, hs_pipeline, hs_pipeline_stage, and any additional custom properties. Returns the created ticket with its HubSpot ID and properties.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_ticket --json
ParameterTypeRequiredDescription
subject string yes Ticket subject / title.
content string no Ticket body content / description.
hs_pipeline string no Pipeline ID for the ticket.
hs_pipeline_stage string no Pipeline stage ID for the ticket.
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_get_ticket

Retrieve a HubSpot ticket by its ID. Returns the ticket's ID, properties, and associated data. Optionally specify which properties to include.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_get_ticket --json
ParameterTypeRequiredDescription
id string yes HubSpot ticket ID.
properties array no List of property names to include.

hubspot.hubspot_update_ticket

Update an existing HubSpot ticket by ID. Provide a properties object with the fields to update (e.g., {"subject": "New subject", "hs_pipeline_stage": "2"}). Returns the updated ticket.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_update_ticket --json
ParameterTypeRequiredDescription
id string yes HubSpot ticket ID to update.
properties object yes Key-value map of properties to update.

hubspot.hubspot_create_association

Create an association between two HubSpot CRM objects. For example, associate a contact to a company, or a deal to a company. Specify the from/to object types (contacts, companies, deals, tickets), their IDs, and the association type. Common association types: contact_to_company, company_to_contact, deal_to_company, ticket_to_contact.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_association --json
ParameterTypeRequiredDescription
from_type string yes Source object type (e.g., "contacts", "companies", "deals", "tickets").
from_id string yes Source object ID.
to_type string yes Target object type (e.g., "contacts", "companies", "deals", "tickets").
to_id string yes Target object ID.
association_type string yes Association type name (e.g., "contact_to_company", "deal_to_company").

hubspot.hubspot_list_associations

List associations from a HubSpot CRM object to another object type. For example, list all companies associated with a specific contact. Returns the associated object IDs and association types.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_associations --json
ParameterTypeRequiredDescription
from_type string yes Source object type (e.g., "contacts", "companies", "deals").
from_id string yes Source object ID.
to_type string yes Target object type to list associations for (e.g., "companies", "contacts").

hubspot.hubspot_list_owners

List HubSpot CRM owners (users). Returns owner IDs, names, and emails. Useful for assigning owners to contacts, deals, and tickets. Supports pagination with limit and after parameters.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_owners --json
ParameterTypeRequiredDescription
limit integer no Maximum number of owners to return (default 100).
after string no Pagination cursor from a previous response.

hubspot.hubspot_create_engagement

Create an engagement in HubSpot CRM (note, task, or meeting). Specify the type and provide the relevant properties. For notes: body (HTML content). For tasks: hs_task_body, hs_task_subject, hs_task_status. For meetings: hs_meeting_title, hs_meeting_body, hs_meeting_start_time, hs_meeting_end_time.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_create_engagement --json
ParameterTypeRequiredDescription
type string yes Engagement type: "notes", "tasks", or "meetings".
body string no Engagement body content (HTML for notes, plain text for tasks).
timestamp string no Engagement timestamp in ISO 8601 format.
owner_id string no HubSpot owner ID to assign the engagement to.
properties object no Additional custom properties as key-value pairs.

hubspot.hubspot_list_pipelines

List HubSpot CRM pipelines for a given object type. Returns all pipelines and their stages. Commonly used for deals and tickets. Use the object type "deals" or "tickets" to get the respective pipelines.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_pipelines --json
ParameterTypeRequiredDescription
object_type string yes Object type (e.g., "deals", "tickets").

hubspot.hubspot_list_properties

List HubSpot CRM property definitions for a given object type. Returns all properties including their name, label, type, and field type. Useful for discovering available properties for contacts, companies, deals, or tickets.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_properties --json
ParameterTypeRequiredDescription
object_type string yes Object type (e.g., "contacts", "companies", "deals", "tickets").

hubspot.hubspot_add_contact_to_list

Add contacts to a HubSpot marketing list. Provide either contact_ids (HubSpot vid IDs) or emails (email addresses), or both. Contacts that are already in the list are silently skipped.

Operation
Write write
Schema command
kosmo integrations:schema hubspot.hubspot_add_contact_to_list --json
ParameterTypeRequiredDescription
list_id string yes HubSpot list ID to add contacts to.
contact_ids array no Array of HubSpot contact IDs (vids) to add.
emails array no Array of email addresses to add.

hubspot.hubspot_list_forms

List HubSpot marketing forms. Returns form IDs, names, types, and creation timestamps. Supports pagination with limit and after parameters.

Operation
Read read
Schema command
kosmo integrations:schema hubspot.hubspot_list_forms --json
ParameterTypeRequiredDescription
limit integer no Maximum number of forms to return (default 50).
after string no Pagination cursor from a previous response.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.