If this feature is not currently available, could you please add it to the to-do list? This enhancement would greatly improve our ability to use your APIs more effectively.
Using the regular REST API endpoints that HubSpot offers, you will need a second batch API request to retrieve the details of the associated objects. Retrieving associated records through a GET request currently only returns the ID and association label.
However, if you construct a GraphQL query, you should be able to retrieve the properties you are looking for in a single API call.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
@Humashankar, I've been trying hard for the past few days but haven't received the response I mentioned. Could you please share the complete method or CURL? Your help would be greatly appreciated. Thanks in advance!
The "associations": ["deals", "contacts"] section should be included within the JSON request body, not as a separate parameter in the URL Can you try the below one and give a try-
"It would be very helpful if these APIs work as expected, allowing me to retrieve the necessary details, including the associated contact ID and email, as well as the associated deal ID and deal name."
HubSpot's Batch Read API enables efficient retrieval of detailed information for multiple objects (companies and deals) by leveraging their IDs. The below steps helps better.
Obtain Association IDs by Extract the association IDs from the initial response, found in the "results" array for companies and deals (e.g., "id": "20861273154").
Construct Batch Read Request by making use of the retrieved association IDs to build a new API call to the Batch Read endpoint (/crm/v3/objects/batch-read). Include the IDs in the request body to fetch comprehensive information for the specified objects in a single, efficient API call, utilizing the full potential of the Batch Read API
If you'd like to see a more streamlined experience, you can also submit a feature request to HubSpot by navigating to Ideas from the dropdown.
Hope this helps - Happy to help further!! Thank you very much and have a great one! Warm regards
Humashankar VJ HubSpot Enthusiast and Key Advisor | Engineering Manager
Thank you for the response, but I am not able to get the information I need. Could you please share the APIs with some examples? This would be very beneficial, and I would appreciate it.
Hey, @devphoenix👋 This ended up getting flagged by the spam filter. I moved it out, so our community members can take a look.
Talk soon! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !