# Getting Engagements from a Deal

**URL:** <https://community.hubspot.com/t/getting-engagements-from-a-deal/11404>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [November 16, 2018, 7:52pm UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404 "2018-11-16T19:52:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aliba](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aliba/32/102498_2.png) [@Aliba](https://community.hubspot.com/u/Aliba)\
**Post date:** [November 16, 2018, 7:52pm UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/1 "2018-11-16T19:52:35Z")

</div>

Hi,  
We are trying to Get the Engagements from a specific Deal But using this Method: [http://developers.hubspot.com/docs/methods/engagements/get\_associated\_engagements](http://developers.hubspot.com/docs/methods/engagements/get_associated_engagements)  
But it doesn’t return any record! We tried with a sample company and it works, it doesn’t for deals (with tried several Deal IDs). Our goal is to get the dates in which deal status were changed (es. negotiation → lost)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 19, 2018, 7:51pm UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/2 "2018-11-19T19:51:34Z")

</div>

Hi again, @Aliba.

Can you confirm your Hub ID is **4412483**?

Would you share a few of the _full_ request URLs you are using? For example:

`https://api.hubapi.com/engagements/v1/engagements/associated/DEAL/123456/paged`

---

<div class="post-metadata">

**Author:** ![Aliba](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aliba/32/102498_2.png) [@Aliba](https://community.hubspot.com/u/Aliba)\
**Post date:** [November 20, 2018, 11:11am UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/3 "2018-11-20T11:11:40Z")

</div>

Hi Isaac,

Yes our Hub ID is **4412483**  
This is an example: [https://api.hubapi.com/engagements/v1/engagements/associated/deal/385484890/paged?hapikey=xxxx-xxxxx-xxxxx-xxxxx](https://api.hubapi.com/engagements/v1/engagements/associated/deal/385484890/paged?hapikey=xxxx-xxxxx-xxxxx-xxxxx)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 20, 2018, 9:26pm UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/4 "2018-11-20T21:26:46Z")

</div>

Thank you, @Aliba,

[Deal 385484890](https://app.hubspot.com/contacts/4412483/deal/385484890/?interaction=note) does not have any associated engagements, so that’s why [this endpoint](https://developers.hubspot.com/docs/methods/engagements/get_associated_engagements) doesn’t return anything:

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/8/c8163472ad5d1b1484cfb8e4585e02d1c7add646.jpeg)

Not engagements.jpg2142x1150 151 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/d/db63ad5bad17f72eccac224ddd4554119901424c.jpeg](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/d/db63ad5bad17f72eccac224ddd4554119901424c.jpeg))

Per the [Engagements API Overview](https://developers.hubspot.com/docs/methods/engagements/engagements-overview), HubSpot engagements are:

- Notes
- Emails
- Tasks
- Meetings
- Calls

All engagements appear on the record timeline, but not all timeline events are engagements.

If you wish to find the dates in which deal status changed, use [this endpoint](https://developers.hubspot.com/docs/methods/deals/get_deal) and include the `includePropertyVersions=true` parameter in your request URL. This will return all historical values of the `dealstage` property and the `timestamp` when each changed!

---

<div class="post-metadata">

**Author:** ![Aliba](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aliba/32/102498_2.png) [@Aliba](https://community.hubspot.com/u/Aliba)\
**Post date:** [November 22, 2018, 6:48am UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/5 "2018-11-22T06:48:14Z")

</div>

I see the point, thank you for your explanation. Is there any other API call that returns dates for deal status changes? (Eg when a deal is moved from decision to lost)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 26, 2018, 5:34pm UTC](https://community.hubspot.com/t/getting-engagements-from-a-deal/11404/6 "2018-11-26T17:34:42Z")

</div>

Hi, @Aliba.

Thanks for your patience while I was out over the Thanksgiving holiday.

There are no dedicated APIs for deal status updates. Besides the `includePropertyVersions=true` method I describe above, however, you could create a `deal.propertyChange` [webhook subscription](https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview) for the `dealstage` property. This would send your system a notification any time _any_ deal’s deal stage changes. You could then filter it on your end to only surface when a deal is moved to a specific stage.

Webhook subscriptions require OAuth authentication; unlike your current setup, you _cannot_ use an API key. Learn more about using OAuth with HubSpot [here](https://developers.hubspot.com/docs/methods/oauth2/oauth2-quickstart).
