# Issues with consistency in hubspot-api-client

**URL:** <https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [September 18, 2025, 2:17pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730 "2025-09-18T14:17:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [September 18, 2025, 2:17pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/1 "2025-09-18T14:17:00Z")

</div>

When designing custom code interactions with the hubspot API, I chose to use the hubspot-api-client for consistency.

I had multiple custom coded functions break because of an update in this package, where the naming convention of batch inserts changed from BatchInputSimplePublicObjectInputForCreate to BatchInputSimplePublicObjectBatchInputForCreate.

Even after discovering this issue, I am still noticing inconsistencies, where sometimes it seems to change between custom coded actions.  
In my example, when I try to import and run the coded action locally, I get the message “BatchInputSimplePublicInputForCreate is unknown import symbol” and the code runs with an error.  
It works when I change it to BatchInputSimplePublicBatchInputForCreate, but now I get the error in the coded action:  
ERROR] Runtime.ImportModuleError: Unable to import module ‘hubspotHandler’: cannot import name ‘BatchInputSimplePublicObjectBatchInputForCreate’  
This suggests the coded action has a different version of the hubspot-api-client package then I have locally. I am running 12.0.0.

Aside from this inconvenience, the biggest problem is inconsistency between custom coded actions. I have some custom coded actions running on BatchInputSimplePublicObjectInputForCreate and some on BatchInputSimplePublicObjectBatchInputForCreate, and all these functions would break if I would swap it around. I have the feeling my custom coded action running on the old spec (BatchInputSimplePublicObjectInputForCreate) could break anytime due to some slow roll-out of new package version.

 ![1202192_1_Screenshot from 2025-09-18 16-11-00.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/e/deb7845d4fec501858c9304b25ca924f21ec2bfb.png)

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [September 19, 2025, 3:17pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/2 "2025-09-19T15:17:08Z")

</div>

@JVermunt - I knos this isn’t necessarily helpful, but after finding a number of these library issues over time, I defualt to the use of the base API calls whch are (nearly always) maintained stable over time.

Steve

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [September 19, 2025, 4:11pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/3 "2025-09-19T16:11:34Z")

</div>

It helps in making that decision as well, we will switch to base api calls going forward.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 19, 2025, 5:02pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/4 "2025-09-19T17:02:17Z")

</div>

As always, your feedback and honesty are appreciated, @SteveHTM — Jaycee

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [September 24, 2025, 2:16pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/5 "2025-09-24T14:16:10Z")

</div>

Hi @JVermunt  
This is a versioning and deployment issue in HubSpot, which is quite common. One approach which I can suggest to you is to use the REST API using fetch and axios as the endpoint rarely changes in HubSpot.  
Here is the link to HubSpot docs - [2026-03 API reference - HubSpot docs](https://developers.hubspot.com/docs/api-reference/overview)  
I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [September 24, 2025, 2:28pm UTC](https://community.hubspot.com/t/issues-with-consistency-in-hubspot-api-client/139730/6 "2025-09-24T14:28:47Z")

</div>

I couldn’t find the version initially, but I just noticed the environment runs on version 8, so I am using version 8.2.1 now locally.
