I would like to retrieve all or at least the most recent engagements for a contact. I have read this docs page: Accounts Dashboard | HubSpot
But both for the sample call but also for a specific call with my contact ID 76759 the :definitionId of 10 and our real HubSpot API key I always get a JSON with an empty result (Status: 200 OK):
https://api.hubapi.com/crm-associations/v1/associations/25/HUBSPOT_DEFINED/15?hapikey=demo{"results":[],"hasMore":false,"offset":0}
Hi @mseibert,
You have to change few values in the URL, like -
https://api.hubapi.com/crm-associations/v1/associations/76759/HUBSPOT_DEFINED/10?hapikey={your_api_key}
You can get the definition ids from here: Accounts Dashboard | HubSpot
Regards,
Hm. I keep getting empty results:
{ results: [], hasMore: false, offset: 0 }
The hapikey must be correct, as I am getting a status code 200 and errors with a different code. I am confused. Every note should be an engagement, right. Or what will be listed here?
No matter what I am using, the results work but remain empty although there is data to be retrieved. #hmpf
@mseibert
I believe you will want to use 9 rather than 10 for the association definition.
Have you tested with other contacts to see if it is isolated to this record?
I used a deprecated ID that changed after a contact merge. Sorry for the fuzz. 