# GET /api/event/list

**URL:** <https://developer.sailpoint.com/discuss/t/get-api-event-list/20736>\
**Category:** Non-Public API Deprecations\
**Tags:** deprecated\
**Created:** [November 9, 2023, 6:23pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736 "2023-11-09T18:23:42Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [November 9, 2023, 6:23pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/1 "2023-11-09T18:23:42Z")

</div>

Replaced by:

> **[get-task-status-list | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/beta/get-task-status-list)**
>
> Retrieve a task status list.

Also, search can be used to find events.

> **[search-post | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/v3/search-post)**
>
> Perform Search

More specifically, you can use the following request body to search on events:

```json
{
  "indices": [
    "events"
  ],
  "query": {
    "query": "*"
  }
}

```

For more information on search for events, please read the following:

> **[Searchable Fields - SailPoint Identity Services](https://documentation.sailpoint.com/saas/help/search/searchable-fields.html#searching-event-data)**
>
> SailPoint Identity Services Documentation

---

<div class="post-metadata">

**Author:** ![angelo\_mekenkamp](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/angelo_mekenkamp/32/3386_2.png) [@angelo\_mekenkamp](https://developer.sailpoint.com/discuss/u/angelo_mekenkamp)\
**Post date:** [November 28, 2023, 1:53pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/2 "2023-11-28T13:53:02Z")

</div>

We use `GET /api/event/list’ to get the status of the entitlement aggregation  
For this we use

```auto
sort = [{ "property": 'timestamp', "direction": 'DESC' }]

```

And

```auto
filter = [{ "property": 'type', value: "ENTITLEMENT_AGGREGATION" }, { "property": "objectType", "value": "source" },
              { "property": "objectId", "value": <<source_cloud_id>>}]

```

This would allow our scripts to know when entitlement aggregation has finished (succesfully/unsuccessfully) and when it can continue with its actions.  
How can we use the search API to receive the status of the entitlement 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:** [November 28, 2023, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/3 "2023-11-28T14:37:32Z")

</div>

Try this search query.

```json
{
    "indices": [
        "events"
   ],
    "query": {
        "query": "action:SOURCE_ENTITLEMENT_AGGREGATION"
   }
}

```

---

<div class="post-metadata">

**Author:** ![yannick\_beot](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/yannick_beot/32/8985_2.png) [@yannick\_beot](https://developer.sailpoint.com/discuss/u/yannick_beot)\
**Post date:** [November 28, 2023, 2:52pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/4 "2023-11-28T14:52:10Z")

</div>

Search is not “real-time”: there is always a delay between when the event occurs and when the data is available in Search.

Will the UI use search on events as well to determine that the aggregation is completed when started in the UI?

---

<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:** [November 28, 2023, 3:03pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/5 "2023-11-28T15:03:21Z")

</div>

I have an action item to ask engineering about a real-time equivalent. In the meantime, search is the only way I can see how to get this information. Usually, search is only delayed by a few seconds or minutes…

---

<div class="post-metadata">

**Author:** ![angelo\_mekenkamp](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/angelo_mekenkamp/32/3386_2.png) [@angelo\_mekenkamp](https://developer.sailpoint.com/discuss/u/angelo_mekenkamp)\
**Post date:** [November 28, 2023, 3:33pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/6 "2023-11-28T15:33:09Z")

</div>

Hi @colin_mckibben,

Search can also be delayed by hours. Try to create a role, make it requestable and hit apply changes. In our environment, it could take hours before we can actually request the role through the UI, simply because the SailPoint Request Center is using search to find the roles.

But ignoring the real-time vs sometime part for now, I believe it is not possible at all to find the entitlement aggregation status information through search.

---

<div class="post-metadata">

**Author:** ![yannick\_beot](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/yannick_beot/32/8985_2.png) [@yannick\_beot](https://developer.sailpoint.com/discuss/u/yannick_beot)\
**Post date:** [November 29, 2023, 8:14am UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/7 "2023-11-29T08:14:32Z")

</div>

It seems that [get-account-aggregation-status | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/beta/get-account-aggregation-status/#in-progress-account-aggregation-status) is a start.  
But we should have something equivalent for entitlements, file upload, etc.

---

<div class="post-metadata">

**Author:** ![mcheek](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mcheek/32/23705_2.png) [@mcheek](https://developer.sailpoint.com/discuss/u/mcheek)\
**Post date:** [December 1, 2023, 2:40pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/8 "2023-12-01T14:40:42Z")

</div>

@colin_mckibben my use case is finding failed account aggregations as we have audit controls wrapped around them.

While searching for action:SOURCE\_ACCOUNT\_AGGREGATION\_FAILED does produce results, it lacks the error messages that are contained in the /api/event/list endpoint

Event search - how do I follow the trackingNumber breadcrumb here?

```JSON
{
        "org": "chk-sb",
        "pod": "stg02-useast1",
        "created": "2023-12-01T14:35:46.627Z",
        "id": "b3f5d88f1fd345b7b2d8ed74299abfae",
        "action": "SOURCE_ACCOUNT_AGGREGATION_FAILED",
        "type": "SOURCE_MANAGEMENT",
        "actor": {},
        "target": {
            "name": "Allegro DB [source]"
        },
        "stack": "qpoc",
        "trackingNumber": "f0aea96bc6214e9281ee1d87c4060d0b",
        "attributes": {
            "aggregationId": "3d14bd29c77a4af9adb462a823a1f7a2",
            "sourceId": "2c918088768763fb0176d382b5416913",
            "sourceName": "Allegro DB"
        },
        "objects": [
            "SOURCE",
            "ACCOUNT"
        ],
        "operation": "AGGREGATE",
        "status": "FAILED",
        "technicalName": "SOURCE_ACCOUNT_AGGREGATE_FAILED",
        "name": "Aggregate Source Account Failed",
        "synced": "2023-12-01T14:35:46.871Z",
        "_type": "event",
        "_version": "v7"
    }

```

/api/event/list

```JSON
{
            "id": 4812685,
            "type": "CLOUD_ACCOUNT_AGGREGATION",
            "status": "ERROR",
            "timestamp": "2023-12-01T14:41:58Z",
            "dateCreated": "2023-12-01T14:41:58Z",
            "details": {
                "name": "Cloud Account Aggregation",
                "description": null,
                "messages": {
                    "Error": "[ConnectorException] \n [Error details] The server encountered an unexpected error while contacting target system. Please check the logs. Invalid column name 'securitygrou'."
                },
                "attributes": {
                    "eventId": 4812685,
                    "total": "0",
                    "clusterCcgBuild": "928",
                    "appId": "2c918088768763fb0176d382b5416913",
                    "optimizedAggregation": "enabled"
                },
                "completed": 1701441719616,
                "id": "e26c52b374db4714b2dfcf9a0359c4bf",
                "launched": 1701441717577,
                "status": "Error"
            },
            "user": {
                "alias": "366088",
                "externalId": "2c91808670f4c5dd0170f82275627256",
                "displayName": "Mark Cheek"
            },
            "object": {
                "id": 153400,
                "externalId": "2c918088768763fb0176d382b5416913",
                "type": "source",
                "displayName": "Allegro DB"
            }
        }

```

---

<div class="post-metadata">

**Author:** ![gilliam-van-der-merwe](https://avatars.discourse-cdn.com/v4/letter/g/977dab/32.png) [@gilliam-van-der-merwe](https://developer.sailpoint.com/discuss/u/gilliam-van-der-merwe)\
**Post date:** [January 8, 2024, 7:13am UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/9 "2024-01-08T07:13:03Z")

</div>

Hi @colin_mckibben,

Could you perhaps indicate the timeline for when the deprecated API will no longer be usable?

---

<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 8, 2024, 2:16pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/10 "2024-01-08T14:16:43Z")

</div>

Hi Gilliam. All deprecated APIs will be turned off on March 31st. Please see this announcement for more information.

> [@Deprecation: CC, V1, and V2 API Decommission Update](https://developer.sailpoint.com/discuss/t/deprecation-cc-v1-and-v2-api-decommission-update/19797):
>
> [Private API Deprecations - Being Proactive](https://share.vidyard.com/watch/NXVYdYza6uy4YfPdjuazSq.html)When will the APIs be deprecated? Since February of 2023, SailPoint has been in the process of deprecating non public APIs. The original date we communicated to you was December 31st, 2023, but that has been extended. SailPoint now intends to turn off (sunset) ALL non-public API endpoints on March 31st, 2024. A non public API endpoint is one that contains any of the following keywords in the URL: /cc/api /api /api/v2 Certain non-public API endp…

---

<div class="post-metadata">

**Author:** ![gilliam-van-der-merwe](https://avatars.discourse-cdn.com/v4/letter/g/977dab/32.png) [@gilliam-van-der-merwe](https://developer.sailpoint.com/discuss/u/gilliam-van-der-merwe)\
**Post date:** [January 8, 2024, 2:30pm UTC](https://developer.sailpoint.com/discuss/t/get-api-event-list/20736/11 "2024-01-08T14:30:29Z")

</div>

Okay, thank you very much.
