Associations v4 response no "user_defined" associations

I currently use the Associations v4 read and list endpoints to get the associations between companies and deals. The private app has read permissions on deals and companies.

However, I only get the “hubspot_defined” associations as a response. “user_defined” are not returned.

Does anyone know what is causing this?

Hey, @Simon2992 :waving_hand: Thanks for your question.

Here are the next steps I’d take:

  • Navigate to Settings > Objects > Companies > Associations
  • Verify the User created associations and their labels
  • Do the same for Deals
  • Use the GET request listed here — Retrieve association types, for Company to Deal and Deal to Company
  • Compare to what you have in-app for associations

One thing to note, associations in HubSpot are omnidirectional. Meaning, the association typeIds for Company > Deal will be different from Deal to Company or any two objects.

Can you share your example request to the associations endpoint, please? Along with the response?

GET /crm/v4/associations/{fromObjectType}/{toObjectType}/labels

Thank you! — Jaycee

Hi @Jaycee_Lewis,
thanks for your help. After checking all the steps you recommended, I get the correct results on the documentation page, likewise in Postman.

In HubSpot CustomCode (NodeJS) I get the error message:

Cannot read properties of undefined (reading 'basicApi')

As you can see on the screenshots, I use exactly the same code, as well as the same private app.

Can you help me?


Custom code 1


Custom code 2


Custom code error


Working response in documentation