🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/hubspot

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/hubspot

HubSpot CRM API v3 — contacts, companies, deals, notes, tasks, and list membership. Uses the encrypted credential vault for Private App tokens.

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
11
-45%
Maintainers
4
Weekly downloads
 
Created
Source

@robinpath/hubspot

HubSpot module for RobinPath.

Category Functions Auth License

Why use this module?

The hubspot module lets you:

  • Create a new contact in HubSpot.
  • Get a contact by ID.
  • Update a contact's properties.
  • List contacts with pagination.
  • Search contacts by query string.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/hubspot

Quick Start

1. Set up credentials

hubspot.setToken "pat-xxx"

2. Create a new contact in HubSpot.

hubspot.createContact {"email":"john@example.com","firstname":"John","lastname":"Doe"}

Available Functions

FunctionDescription
hubspot.setTokenSet the HubSpot private app access token.
hubspot.createContactCreate a new contact in HubSpot.
hubspot.getContactGet a contact by ID.
hubspot.updateContactUpdate a contact's properties.
hubspot.listContactsList contacts with pagination.
hubspot.searchContactsSearch contacts by query string.
hubspot.createDealCreate a new deal in HubSpot.
hubspot.getDealGet a deal by ID.
hubspot.updateDealUpdate a deal's properties.
hubspot.listDealsList deals with pagination.
hubspot.createCompanyCreate a new company in HubSpot.
hubspot.getCompanyGet a company by ID.

Examples

Create a new contact in HubSpot.

hubspot.createContact {"email":"john@example.com","firstname":"John","lastname":"Doe"}

Get a contact by ID.

hubspot.getContact "123"

Update a contact's properties.

hubspot.updateContact "123" {"phone":"+1234567890"}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/hubspot";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  hubspot.setToken "pat-xxx"
  hubspot.createContact {"email":"john@example.com","firstname":"John","lastname":"Doe"}
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

hubspot

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts