Skip to content
HubSpot Developer Changelog

Major Upgrade for API Clients

What’s happening?

HubSpot’s API clients for Node.js, PHP, Ruby, and Python all received a major version upgrade. This upgrade improves usability by changing many method names. 

As an example, before the update: you might use crm.companies.batchAPI.createBatch() in the Node.js client.

After the update: you would use crm.companies.batchAPI.create(), removing the redundancy of using “batch” twice.

Also included is a new “get all” method for CRM objects across all libraries. The "get all" method handles pagination for you, making several API calls “under the hood” without you needing to know the details.

When is this happening?

The new versions are available now across the different package managers.

If you have any questions, please join the discussion in the community