✓ Verified 💻 Development ✓ Enhanced Data

Native Hubspot

Query and manage HubSpot CRM data via the HubSpot API.

Rating
4.3 (451 reviews)
Downloads
5,217 downloads
Version
1.0.0

Overview

Query and manage HubSpot CRM data via the HubSpot API.

Complete Documentation

View Source →

HubSpot

Interact with HubSpot CRM directly via the HubSpot API (api.hubapi.com).

Setup (one-time)

  • In HubSpot: Settings → Integrations → Private Apps → Create a private app
  • Give it scopes: crm.objects.contacts.read, crm.objects.contacts.write, crm.objects.companies.read, crm.objects.companies.write, crm.objects.deals.read, crm.objects.deals.write, tickets
  • Copy the access token
  • Set environment variable:
text
HUBSPOT_TOKEN=pat-na1-...

Queries

Search contacts

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search contacts --query "john"
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search contacts --email "[email protected]"

List contacts

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py list contacts --limit 20

Get a specific object

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get contacts 12345
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get companies 67890
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get deals 11111

List companies

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py list companies --limit 20

Search companies

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search companies --query "Acme"

List deals

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py list deals --limit 20

Search deals

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search deals --query "enterprise"

List tickets

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py list tickets --limit 20

Create a contact

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py create contacts --email "[email protected]" --firstname "Jane" --lastname "Doe"

Create a company

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py create companies --name "Acme Corp" --domain "acme.com"

Create a deal

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py create deals --dealname "Enterprise Plan" --amount 50000 --pipeline default --dealstage appointmentscheduled

Update an object

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py update contacts 12345 --email "[email protected]" --phone "+1234567890"
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py update deals 11111 --dealstage closedwon --amount 75000

Associate objects

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py associate contacts 12345 companies 67890

List pipelines

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py pipelines deals
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py pipelines tickets

List owners

bash
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py owners

Installation

Terminal bash

openclaw install native-hubspot
    
Copied!

💻Code Examples

### Search contacts

-search-contacts.sh
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search contacts --query "john"
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py search contacts --email "[email protected]"

### Get a specific object

-get-a-specific-object.sh
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get contacts 12345
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get companies 67890
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py get deals 11111

### Update an object

-update-an-object.sh
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py update contacts 12345 --email "[email protected]" --phone "+1234567890"
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py update deals 11111 --dealstage closedwon --amount 75000

### List pipelines

-list-pipelines.sh
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py pipelines deals
python3 /mnt/skills/user/hubspot/scripts/hubspot_query.py pipelines tickets

Tags

#devops_and-cloud #api #data

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author codeninja23
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install native-hubspot