Skip to content
HubSpot Developer Changelog

Bug Fix: Batch Read Limit for HubSpot Associations API

HubSpot is introducing a new limit on the number of IDs that can be supplied to the Batch Read endpoint for (/{fromObjectType}/{toObjectType}/batch/read) both the v3 and v4 public Associations API

Effective January 6th, 2025, any batch read requests submitted to the Associations API may not exceed 100 IDs per request body. This change applies to all subscription tiers and impacts processes or integrations using the Batch Read functionality.

What's changing?

  • New Limit: The Batch Read Associations API request body now supports a maximum of 100 entries in the inputs field.
Please see below an example of the request body inputs field that will only allow 100 entries:
//Example: POST /crm/v4/associations/contacts/companies/batch/read?portalId=123456 { "inputs": [ { "id": "1001", "after": "MC0yLTE1OTc0MDA2NTg%3D" }, { "id": "1002", "after": "MTAtNi0xODQ3MjAxMzg5%3D" } ] }

In the example above, contacts are the fromObjectType, and companies are the toObjectType. The id of the contact whose associated companies we want to retrieve and after can be used for pagination by specifying the pagination token returned in the paging section of the previous response.

  • Larger requests that exceed this limit will be rejected with an error response. Previously, larger batches were accepted, but this change is necessary to maintain API performance and efficiency.

What does this mean for developers?

This update affects any integrations or processes that submit batch reads to the Associations API with more than 100 IDs at a time. Developers must update their code to ensure the batch size remains within the new limit. Requests exceeding 100 IDs will result in a failed API call, which could disrupt existing workflows and integrations if not addressed.

Instructions to avoid breakage:

  • Update existing processes to split batch read requests into smaller batches, ensuring that no more than 100 IDs are submitted per request.
  • Review your API integrations to confirm compliance with the new limit.
  • If necessary, implement a loop to process multiple batches sequentially. This will ensure efficient handling of larger datasets while adhering to the 100 id limit.

When is it happening?

A new limit for the Associations API's Batch Read feature will be enforced on January 6th, 2025. The limit will gradually decrease to 100 over 30 days after January 6th, aiming to minimize inconvenience for users with more than 100 IDs per request.

Questions or comments? Join the developer forums for a peer-to-peer discussion.