APIs & Integrations

mandy_asberry
Member

HubSpot API - parent/child records

SOLVE

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

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

HubSpot API - parent/child records

SOLVE

Welcome, @mandy.asberry!

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

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

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

HubSpot API - parent/child records

SOLVE

Welcome, @mandy.asberry!

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

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

Isaac Takushi

Associate Certification Manager
0 Upvotes