APIs & Integrations

richard3
Member

Cannot get engagements associated with deal by using hubspot API

we read the document about getting engagements associated with contacts /deals: https://developers.hubspot.com/docs/methods/engagements/get_associated_engagements

we can successfully get engagements associated with contacts. However, we cannot get engagements with deals.

This is our sample URL and sample deal. It returns empty but the deal actually has tasks associated with it:

https://api.hubapi.com/engagements/v1/engagements/associated/DEAL/{{our_id}}/paged?limit=100&access_token={{token}}&offset=0

0 Upvotes
4 Replies 4
richard3
Member

Cannot get engagements associated with deal by using hubspot API

thanks, David. I will check more. Thank you for the help!

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Cannot get engagements associated with deal by using hubspot API

Hi @richard

Do you have an example deal that I’d be able to look at? I’m not seeing any problems getting associated engagements for deals in a few test portals so I’d need to see the data you’re working with.

0 Upvotes
richard3
Member

Cannot get engagements associated with deal by using hubspot API

thanks, Dadams.

here is one example deal: https://app.hubspot.com/sales/1752569/deal/131016540/

We cannot use the API to get engagements associated with it. However, I can get engagements associated with contacts.

0 Upvotes
Dadams
HubSpot Employee
HubSpot Employee

Cannot get engagements associated with deal by using hubspot API

Thanks @richard. Looking at that deal, there aren’t any engagements associated directly with that deal.

When you’re viewing the deal in HubSpot, the timeline will show engagements associated with contacts or the company associated with the deal, but the API will only return records that are directly associated with the deal itself.

0 Upvotes