@this-npm-test-org/connection-hubspot
v0.1.3
Published
Manage contacts, companies, deals, and tickets.
Readme
HubSpot Connection
Connects your agent to HubSpot CRM and Marketing Hub. Read contacts, deals, companies, engagement history, campaign performance, and workflow status. Write operations require confirmation.
Authentication
OAuth2 authorization code flow.
client_id— HubSpot app client IDclient_secret— HubSpot app client secretportal_id— Your HubSpot portal ID
Scopes: crm.objects.contacts.read, crm.objects.deals.read, crm.objects.companies.read, sales-email-read, content.
Endpoints
Contacts
GET /crm/v3/objects/contacts— List contacts with property filtersGET /crm/v3/objects/contacts/{id}— Get contact detail with lifecycle stageGET /crm/v3/objects/contacts/{id}/associations— Get associated deals and companiesPATCH /crm/v3/objects/contacts/{id}— Update contact properties (confirmation)
Deals
GET /crm/v3/objects/deals— List deals with pipeline and stage filtersGET /crm/v3/objects/deals/{id}— Get deal detail with amount and close datePATCH /crm/v3/objects/deals/{id}— Update deal stage or amount (confirmation)
Companies
GET /crm/v3/objects/companies— List companies with domain searchGET /crm/v3/objects/companies/{id}— Get company detail
Engagements
GET /engagements/v1/engagements/recent/modified— Recent engagement activityGET /engagements/v1/engagements/{id}— Get engagement detail (email, call, meeting)
Campaigns
GET /marketing/v1/campaigns— List marketing campaignsGET /marketing/v1/campaigns/{id}— Get campaign performance (opens, clicks, conversions)
Workflows
GET /automation/v3/workflows— List active workflows with enrollment counts
Rules
- Rate limit: 100 requests/10 seconds (standard), 200/10s (enterprise)
- Contact and deal updates require confirmation
- The agent checks for duplicate contacts before suggesting creation
- Bulk operations (>5 records) require itemized confirmation
