HubSpot API - parent/child records

I can’t find anything in the API that lets me grab child records for company locations associated to the parent company. Any ideas?

Welcome, @mandy.asberry!

You can use the CRM Associations API for this, using the definitionId values 13 and 14:

New Functionality: Parent ↔ Child Associations via API Announcements

What’s happening? Integrators now have the ability to manage Parent ↔ Child associations between companies via the API. Specifically, integrators can now use the new association types to make these associations through the CRM Associations API. The documentation for the CRM Associations API (including the new parent ↔ child association types) can be found here What’s changing? The CRM Associations API is being updated to support two new association types: Parent company to child company, …

For example, if you need to get the child record IDs for companyId 123, you would use:

https://api.hubapi.com/crm-associations/v1/associations/123/HUBSPOT_DEFINED/13