View your activity notification feed.
This example request gets 5 activities for the current user and sorts them in descending order.
curl \
--request GET \
--header "Content-Type: application/json" \
--header "Authorization: Bearer dea464c07bd07300095caa8" \
https://demo.immuta.com/activity?size=5&sortOrder=desc
{
"count": 210,
"activities": [
{
"modelType": "datasource",
"modelId": "105",
"createdAt": "2021-05-04T18:39:08.712Z",
"notificationType": "modelUserDeleted",
"metadata": {
"dataSourceName": "Public Uciml Census Income Enriched",
"activity": "access",
"action": "revoked"
},
"read": false,
"id": 1255,
"updatedAt": "2021-05-04T18:39:08.712Z",
"actionBy": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
},
"targetUser": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
}
},
{
"modelType": "datasource",
"modelId": "106",
"createdAt": "2021-05-04T18:39:08.696Z",
"notificationType": "modelUserDeleted",
"metadata": {
"dataSourceName": "Public Fake Medical Claims 2017",
"activity": "access",
"action": "revoked"
},
"read": false,
"id": 1254,
"updatedAt": "2021-05-04T18:39:08.696Z",
"actionBy": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
},
"targetUser": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
}
},
{
"modelType": "datasource",
"modelId": "105",
"createdAt": "2021-05-04T18:39:08.649Z",
"notificationType": "modelDeleted",
"metadata": {
"dataSourceName": "Public Uciml Census Income Enriched",
"fields": {
"deleted": true
}
},
"read": false,
"id": 1253,
"updatedAt": "2021-05-04T18:39:08.649Z",
"actionBy": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
},
"targetUser": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
}
},
{
"modelType": "datasource",
"modelId": "106",
"createdAt": "2021-05-04T18:39:08.650Z",
"notificationType": "modelDeleted",
"metadata": {
"dataSourceName": "Public Fake Medical Claims 2017",
"fields": {
"deleted": true
}
},
"read": false,
"id": 1252,
"updatedAt": "2021-05-04T18:39:08.650Z",
"actionBy": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
},
"targetUser": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
}
},
{
"modelType": "datasource",
"modelId": "103",
"createdAt": "2021-05-04T18:39:08.555Z",
"notificationType": "modelUserDeleted",
"metadata": {
"dataSourceName": "Public Credit Transactions",
"activity": "access",
"action": "revoked"
},
"read": false,
"id": 1251,
"updatedAt": "2021-05-04T18:39:08.555Z",
"actionBy": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
},
"targetUser": {
"id": 2,
"name": "John",
"email": "john.doe@immuta.com"
}
}
],
"unread": 210,
"next": "1251_2021-05-04T18:39:08.555Z"
}
Determine whether you have unread activity notifications.
This request determines whether or not the requesting user has unread activities.
curl \
--request GET \
--header "Content-Type: application/json" \
--header "Authorization: Bearer dea464c07bd07300095caa8" \
https://demo.immuta.com/activity/hasUnread