# Get Recent Engagements API Endpoint

**URL:** <https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [February 22, 2019, 4:51pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178 "2019-02-22T16:51:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiwu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aiwu/32/35608_2.png) [@aiwu](https://community.hubspot.com/u/aiwu)\
**Post date:** [February 22, 2019, 4:51pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/1 "2019-02-22T16:51:06Z")

</div>

Hi,

I have a concern regarding the “Get recent engagements” endpoint documented here : [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/engagements/get-recent-engagements)

There’s a note saying we are only able to fetch the records created in the last 30 days BUT we are trying to fetch the most recent engagements which does not make sense in this case. Would there be a better way of solving this?

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [February 25, 2019, 4:52pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/2 "2019-02-25T16:52:01Z")

</div>

Hi @aiwu , this endpoint returns Engagements _created within the past 30 days_, e.g. the most recent Engagements created in your HubSpot account. If you need more than just engagements that go back more than 30 days, you’ll need to use the [Get All Engagements API](https://developers.hubspot.com/docs/methods/engagements/get-all-engagements) and filter from there on your end.

---

<div class="post-metadata">

**Author:** ![aiwu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aiwu/32/35608_2.png) [@aiwu](https://community.hubspot.com/u/aiwu)\
**Post date:** [February 25, 2019, 4:55pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/3 "2019-02-25T16:55:16Z")

</div>

Hi @cbarley But this is the endpoint to fetch the most recent engagements hence it should return the last updated Engagements first no ? Thank you. Just wanted some explanation behind the meaning of this endpoint.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [February 25, 2019, 6:55pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/4 "2019-02-25T18:55:45Z")

</div>

Yes, this endpoint fetches the most recently updated engagements within the last 30 days. It should return you an order of newest engagements to oldest. I realized I said it fetches the most recently _created_ engagements in my last reply, which was wrong. It returns recently updated engagements, which will include recently created ones, but will also include any ones you’d recently edited as well

---

<div class="post-metadata">

**Author:** ![aiwu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aiwu/32/35608_2.png) [@aiwu](https://community.hubspot.com/u/aiwu)\
**Post date:** [February 25, 2019, 6:58pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/5 "2019-02-25T18:58:13Z")

</div>

I would assume that’s the expected behavior but on the API docs, it says this:  
“Note: This endpoint will only return records created in the last 30 days, or the 10k most recently created records. If you need to get all of your engagements, please use [this endpoint](https://developers.hubspot.com/docs/methods/engagements/get-all-engagements).”

Hence my confusion. So does it really only return the “last created” ones for an last updated api call?

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [February 25, 2019, 7:08pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/6 "2019-02-25T19:08:12Z")

</div>

Hmm, good point - let me test

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [February 25, 2019, 10:21pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/7 "2019-02-25T22:21:31Z")

</div>

Hi @aiwu, it looks like this endpoint will return all _updated_ engagements. I made a GET call to my own account and was able to see that a Call activity was the second engagement returned to me:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/a/daf4cea1f59f62ce66e305715c7d3a3b1a482106.png)

I then updated that engagement in the UI. If the engagement was returned to me first, rather than second, we would know that this endpoint returns all _updated_ engagements instead of just _created_ ones.

I made the same request after updating that engagement and that endpoint returned the changed engagement **first.**

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/6/c6737ead3ad92cb4c30b2648f4d7370a37a7accd.png)

This endpoint will return all updated engagements. I will alter the documentation’s language

---

<div class="post-metadata">

**Author:** ![aiwu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aiwu/32/35608_2.png) [@aiwu](https://community.hubspot.com/u/aiwu)\
**Post date:** [February 25, 2019, 10:27pm UTC](https://community.hubspot.com/t/get-recent-engagements-api-endpoint/13178/8 "2019-02-25T22:27:09Z")

</div>

Thank you for the response @cbarley , that would make more sense like that.
