Skip to main content

Overview

OneCLI connects AI agents to HubSpot through OAuth. Agents can read and manage CRM records including contacts, companies, deals, and tickets. The gateway injects OAuth credentials into requests to the HubSpot API automatically.
HubSpot is a cloud-only integration, available on the Team plan.

Setup

1

Go to Connections

Open the OneCLI dashboard and navigate to Connections > HubSpot.
2

Authorize

Click Connect HubSpot. You’ll be redirected to HubSpot to authorize OneCLI. Review the requested permissions and click Grant access.OneCLI requests read access to contacts, companies, deals, owners, and tickets by default. Write access and additional scopes (line items, quotes, lists, schemas) are optional.
3

Verify

After authorization, you’ll be redirected back to the dashboard. The connection will show as Connected with your HubSpot portal domain.

What agents can do

AreaDescription
ContactsRead, create, and update contact records and properties
CompaniesRead, create, and update company records
DealsRead, create, and update deals and pipeline stages
TicketsRead, create, and update support tickets
OwnersView record owners and assignments
ListsView contact lists (read-only)
Quotes & Line ItemsView quotes and line item records (read-only)
SchemasView property definitions for contacts, companies, and deals

Use cases

  • CRM enrichment agents that update contact records with data from other sources
  • Sales pipeline agents that track deals and update stages
  • Support agents that create and triage tickets
  • Reporting agents that pull CRM data for analysis

Controlling access with rules

Use OneCLI’s rules engine to control what agents can do with your HubSpot account. For example, allow agents to read contacts but block creating or modifying them, or rate-limit API calls. Rules are evaluated before credential injection, so a blocked request never reaches the HubSpot API.