# Source Aggregation Status API

**URL:** <https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530>\
**Category:** SHF Discussion and Questions\
**Created:** [December 31, 2021, 5:11pm UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530 "2021-12-31T17:11:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeburns365](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikeburns365/32/6890_2.png) [@mikeburns365](https://developer.sailpoint.com/discuss/u/mikeburns365)\
**Post date:** [December 31, 2021, 5:11pm UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530/1 "2021-12-31T17:11:22Z")

</div>

Via API, I am triggering an “Entitlement Aggregation” for a given source.  
I would like to automate additional steps once the aggregation is complete.

Is there a way to query the API to determine if a source is in process of running an aggregation?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [January 6, 2022, 8:58pm UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530/2 "2022-01-06T20:58:37Z")

</div>

Hi @mikeburns365 . Can you please share the API endpoint you are using to trigger the entitlement aggregation, as well as any relevant details. Also, the response body you receive from the API might be helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![Ramiro](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Ramiro](https://developer.sailpoint.com/discuss/u/Ramiro)\
**Post date:** [January 10, 2022, 1:12am UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530/3 "2022-01-10T01:12:06Z")

</div>

Hi Mike,

I do the same thing, using the IdentityNow private APIs. Note that these APIs are not supported, use at your own risk! I do not believe there is currently a publically supported API to do the same thing.

trigger aggregation:  
https://{{orgname}}.api.identitynow.com/cc/api/source/loadEntitlements/{{sourceId}}

retrieve taskId from response:  
$.task.id

get task status:  
https://{{orgname}}.api.identitynow.com/cc/api/taskResult/get/{{taskId}}

get status from:  
$.completionStatus = “Success” or “Warning”

Note from my experience as well, if you’re using search to find these entitlements after they’re loaded, they can take a while to appear in the search index.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![mikeburns365](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mikeburns365/32/6890_2.png) [@mikeburns365](https://developer.sailpoint.com/discuss/u/mikeburns365)\
**Post date:** [January 10, 2022, 3:43pm UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530/4 "2022-01-10T15:43:36Z")

</div>

Thanks Ramiro - this is exactly what I was looking for - excited to give this a try!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:22pm UTC](https://developer.sailpoint.com/discuss/t/source-aggregation-status-api/2530/5 "2023-07-19T14:22:25Z")

</div>


