Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Notifications

Notifications are alerts triggered by certain events pertaining to a resource. To receive notifications for a specific resource, a user must have a subscription to the resource.


Objects

Notification

Path Type Format Description
id String Version 4 UUID The notification ID
created String ISO 8601 timestamp The instant the notification was created at
lastModified String ISO 8601 timestamp The instant the notification was last modified at
actor Member   The member whose action raised this notification
type String Notification Type The type of notification
resolved Boolean   Whether or not the notification has been read
{
  "id" : "f2f52b66-3b76-4122-862d-be25f7146dcc",
  "created" : "2024-04-10T14:05:00.857221",
  "lastModified" : "2024-04-10T14:05:00.857222",
  "type" : "DATASET_COMMENT",
  "actor" : {
    "id" : "auth0|5eb0327cbfd7490bff55feeb",
    "name" : "[email protected]",
    "handle" : "@sit+prod"
  },
  "resolved" : false,
  "_embedded" : {
    "subscriberProfile" : {
      "id" : "auth0|5eb0327cbfd7490bff55feeb",
      "name" : "[email protected]",
      "handle" : "@sit+prod"
    },
    "channel" : {
      "name" : "no-picture",
      "description" : "No picture",
      "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
    },
    "datasetComment" : {
      "id" : "1c59025e-cf5d-46b1-829d-35725b521a84",
      "message" : "SIT-generated comment",
      "likeCount" : 0,
      "created" : "2024-04-10T14:05:00.148859",
      "lastModified" : "2024-04-10T14:05:00.148859",
      "from" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "commentCount" : 0,
      "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
    },
    "dataset" : {
      "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
      "published" : "2024-04-10T14:04:57.131399",
      "alias" : "analytics-tables",
      "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
      "source" : "no-picture",
      "title" : "What tables are in our #fantastic data warehouse?",
      "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
      "likeCount" : 0,
      "commentCount" : 0,
      "viewCount" : 0,
      "created" : "2024-04-10T14:04:57.131398",
      "score" : 1.0
    },
    "workspace" : {
      "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
      "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
    }
  },
  "_links" : {
    "self" : {
      "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"
    },
    "delete notification" : {
      "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc",
      "type" : "DELETE"
    },
    "channel" : {
      "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
    },
    "datasetComment" : {
      "href" : "https://catalog.matatika.com/api/comments/1c59025e-cf5d-46b1-829d-35725b521a84"
    },
    "dataset" : {
      "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
    },
    "data" : {
      "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
    },
    "workspace" : {
      "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
    }
  }
}

Formats

Notification Type

String

Value Description
DATASET_ACTIVITY Any activity on the dataset
DATASET_ANOMOLY A detected anomoly in the dataset data
DATASET_COMMENT A comment on the dataset
DATASET_LIKE A like recorded on the dataset
DATASET_MESSAGE A message about the dataset
JOB_STARTED A job started for a pipeline
JOB_ENDED A job ended for a pipeline

Requests

See Also


View all notifications

GET

/api/notifications?all={all}&before={before}&since={since}

Returns all notifications for the authenticated user profile.

Request

Query Parameters

Parameter Required Format Default Value Description
all No Boolean false Whether or not to return both resolved and unresolved notifications
before No ISO 8601 timestamp The instant at which the request was made The instant to return any notifications created before
since No ISO 8601 timestamp 2021-02-11T11:12 The instant to return any notifications created since

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://catalog.matatika.com:443/api/notifications?before=2024-04-10T15%3A05%3A01.362796&since=2021-01-01T00%3A00' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://catalog.matatika.com:443/api/notifications?before=2024-04-10T15%3A05%3A01.362796&since=2021-01-01T00%3A00"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("GET", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Notification collection with HAL links.

{
  "_embedded" : {
    "notifications" : [ {
      "id" : "f2f52b66-3b76-4122-862d-be25f7146dcc",
      "created" : "2024-04-10T14:05:00.857221",
      "lastModified" : "2024-04-10T14:05:00.857222",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "1c59025e-cf5d-46b1-829d-35725b521a84",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:05:00.148859",
          "lastModified" : "2024-04-10T14:05:00.148859",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/1c59025e-cf5d-46b1-829d-35725b521a84"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "03c5074e-353f-4312-a234-99b1e3fab7fe",
      "created" : "2024-04-10T14:05:00.801111",
      "lastModified" : "2024-04-10T14:05:00.801111",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "d3efc7b8-afde-40f5-a49e-66bf4e9be880",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:04:59.805016",
          "lastModified" : "2024-04-10T14:04:59.805016",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/03c5074e-353f-4312-a234-99b1e3fab7fe"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/03c5074e-353f-4312-a234-99b1e3fab7fe",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/d3efc7b8-afde-40f5-a49e-66bf4e9be880"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "77c5f2a7-8820-4863-a825-0d0afb6b192b",
      "created" : "2024-04-10T14:05:00.720901",
      "lastModified" : "2024-04-10T14:05:00.720901",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "e99554c1-9433-418e-9f77-248a4cecaa5c",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:04:59.109503",
          "lastModified" : "2024-04-10T14:04:59.109503",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/77c5f2a7-8820-4863-a825-0d0afb6b192b"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/77c5f2a7-8820-4863-a825-0d0afb6b192b",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/e99554c1-9433-418e-9f77-248a4cecaa5c"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "24e7ec12-66fb-4c56-a27c-4fe2498ae746",
      "created" : "2024-04-10T14:05:00.311655",
      "lastModified" : "2024-04-10T14:05:00.311656",
      "type" : "DATASET_ACTIVITY",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/24e7ec12-66fb-4c56-a27c-4fe2498ae746"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/24e7ec12-66fb-4c56-a27c-4fe2498ae746",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://catalog.matatika.com/api/notifications?before=2024-04-10T15%3A05%3A01.362796&since=2021-01-01T00%3A00&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 4,
    "totalPages" : 1,
    "number" : 0
  }
}

View all notifications for a workspace

GET

/api/workspaces/{workspaceId}/notifications?all={all}&before={before}&since={since}

Returns all notifications for the workspace {workspace-id}.

Prerequisites

  • Workspace {workspace-id} must exist

Request

Query Parameters

Parameter Required Format Default Value Description
all No Boolean   Whether or not to return both resolved and unresolved notifications
before No ISO 8601 timestamp The instant at which the request was made The instant to return any notifications created before
since No ISO 8601 timestamp 2021-02-11T11:12 The instant to return any notifications created since

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://catalog.matatika.com:443/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a/notifications?before=2024-04-10T15%3A05%3A01.815936&since=2021-01-01T00%3A00' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://catalog.matatika.com:443/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a/notifications?before=2024-04-10T15%3A05%3A01.815936&since=2021-01-01T00%3A00"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("GET", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Notification collection with HAL links.

{
  "_embedded" : {
    "notifications" : [ {
      "id" : "f2f52b66-3b76-4122-862d-be25f7146dcc",
      "created" : "2024-04-10T14:05:00.857221",
      "lastModified" : "2024-04-10T14:05:00.857222",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "1c59025e-cf5d-46b1-829d-35725b521a84",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:05:00.148859",
          "lastModified" : "2024-04-10T14:05:00.148859",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/1c59025e-cf5d-46b1-829d-35725b521a84"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "03c5074e-353f-4312-a234-99b1e3fab7fe",
      "created" : "2024-04-10T14:05:00.801111",
      "lastModified" : "2024-04-10T14:05:00.801111",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "d3efc7b8-afde-40f5-a49e-66bf4e9be880",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:04:59.805016",
          "lastModified" : "2024-04-10T14:04:59.805016",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/03c5074e-353f-4312-a234-99b1e3fab7fe"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/03c5074e-353f-4312-a234-99b1e3fab7fe",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/d3efc7b8-afde-40f5-a49e-66bf4e9be880"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "77c5f2a7-8820-4863-a825-0d0afb6b192b",
      "created" : "2024-04-10T14:05:00.720901",
      "lastModified" : "2024-04-10T14:05:00.720901",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "e99554c1-9433-418e-9f77-248a4cecaa5c",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:04:59.109503",
          "lastModified" : "2024-04-10T14:04:59.109503",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/77c5f2a7-8820-4863-a825-0d0afb6b192b"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/77c5f2a7-8820-4863-a825-0d0afb6b192b",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/e99554c1-9433-418e-9f77-248a4cecaa5c"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    }, {
      "id" : "24e7ec12-66fb-4c56-a27c-4fe2498ae746",
      "created" : "2024-04-10T14:05:00.311655",
      "lastModified" : "2024-04-10T14:05:00.311656",
      "type" : "DATASET_ACTIVITY",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/24e7ec12-66fb-4c56-a27c-4fe2498ae746"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/24e7ec12-66fb-4c56-a27c-4fe2498ae746",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a/notifications?before=2024-04-10T15%3A05%3A01.815936&since=2021-01-01T00%3A00&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 4,
    "totalPages" : 1,
    "number" : 0
  }
}

View a notification

GET

/api/notifications/{notification-id}

Returns the notification {notification-id}.

Prerequisites

  • Notification {notification-id} must exist

Request

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://catalog.matatika.com:443/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://catalog.matatika.com:443/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("GET", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Notification with HAL links.

{
  "id" : "f2f52b66-3b76-4122-862d-be25f7146dcc",
  "created" : "2024-04-10T14:05:00.857221",
  "lastModified" : "2024-04-10T14:05:00.857222",
  "type" : "DATASET_COMMENT",
  "actor" : {
    "id" : "auth0|5eb0327cbfd7490bff55feeb",
    "name" : "[email protected]",
    "handle" : "@sit+prod"
  },
  "resolved" : false,
  "_embedded" : {
    "subscriberProfile" : {
      "id" : "auth0|5eb0327cbfd7490bff55feeb",
      "name" : "[email protected]",
      "handle" : "@sit+prod"
    },
    "channel" : {
      "name" : "no-picture",
      "description" : "No picture",
      "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
    },
    "datasetComment" : {
      "id" : "1c59025e-cf5d-46b1-829d-35725b521a84",
      "message" : "SIT-generated comment",
      "likeCount" : 0,
      "created" : "2024-04-10T14:05:00.148859",
      "lastModified" : "2024-04-10T14:05:00.148859",
      "from" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "commentCount" : 0,
      "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
    },
    "dataset" : {
      "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
      "published" : "2024-04-10T14:04:57.131399",
      "alias" : "analytics-tables",
      "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
      "source" : "no-picture",
      "title" : "What tables are in our #fantastic data warehouse?",
      "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
      "likeCount" : 0,
      "commentCount" : 0,
      "viewCount" : 0,
      "created" : "2024-04-10T14:04:57.131398",
      "score" : 1.0
    },
    "workspace" : {
      "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
      "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
    }
  },
  "_links" : {
    "self" : {
      "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"
    },
    "delete notification" : {
      "href" : "https://catalog.matatika.com/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc",
      "type" : "DELETE"
    },
    "channel" : {
      "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
    },
    "datasetComment" : {
      "href" : "https://catalog.matatika.com/api/comments/1c59025e-cf5d-46b1-829d-35725b521a84"
    },
    "dataset" : {
      "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
    },
    "data" : {
      "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
    },
    "workspace" : {
      "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
    }
  }
}

Refresh notifications

PUT

/api/notifications?since={since}&markAsResolved={markAsResolved}

Returns new notifications for the authenticated user profile, optionally marking existing notifications as resolved up to the moment the request was made or the supplied since parameter.

Request

Query Parameters

Parameter Required Format Default Value Description
since No ISO 8601 timestamp The instant at which the request was made The instant to fetch any new notifications from
markAsResolved No Boolean true Whether or not to mark notifications created up to since as resolved

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://catalog.matatika.com:443/api/notifications?since=2024-04-10T14%3A05%3A04.908114' -i -X PUT \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://catalog.matatika.com:443/api/notifications?since=2024-04-10T14%3A05%3A04.908114"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("PUT", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Notification collection with HAL links.

{
  "_embedded" : {
    "notifications" : [ {
      "id" : "3bd76346-3468-41c4-8987-729fa70a71a1",
      "created" : "2024-04-10T14:05:09.950769",
      "lastModified" : "2024-04-10T14:05:09.950769",
      "type" : "DATASET_COMMENT",
      "actor" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "resolved" : false,
      "_embedded" : {
        "subscriberProfile" : {
          "id" : "auth0|5eb0327cbfd7490bff55feeb",
          "name" : "[email protected]",
          "handle" : "@sit+prod"
        },
        "channel" : {
          "name" : "no-picture",
          "description" : "No picture",
          "picture" : "https://s.gravatar.com/avatar/8f4ad8fa0793181b761d030196e62053?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fsu.png"
        },
        "datasetComment" : {
          "id" : "dc91829a-368a-4291-968b-0f21bdcd5c09",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-04-10T14:05:06.102554",
          "lastModified" : "2024-04-10T14:05:06.102554",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "dataset" : {
          "id" : "1eede9d3-7466-4979-8a26-919110ab0e1e",
          "published" : "2024-04-10T14:04:57.131399",
          "alias" : "analytics-tables",
          "workspaceId" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "source" : "no-picture",
          "title" : "What tables are in our #fantastic data warehouse?",
          "description" : "# Overview\nThis example is a standalone data set with no visualisation.\n\n## What tables are in my data warehouse\nOur query in this dataset selects all the tables in the same schema we have configured the workspace to use.\n```SHOW TABLES```\n\n## Notes\nThe query is database specific.  The #postgres query is\n\n```SELECT * FROM pg_tables where schemaname = 'ubgfhak'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-04-10T14:04:57.131398",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "9ef672fd-1745-427e-a8d7-6802b59b537a",
          "name" : "Test Workspace [2024-04-10T14:04:56.777644872]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://catalog.matatika.com/api/notifications/3bd76346-3468-41c4-8987-729fa70a71a1"
        },
        "delete notification" : {
          "href" : "https://catalog.matatika.com/api/notifications/3bd76346-3468-41c4-8987-729fa70a71a1",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://catalog.matatika.com/api/channels/1822a91d-22e3-4b52-a53e-e2533ef5ee17"
        },
        "datasetComment" : {
          "href" : "https://catalog.matatika.com/api/comments/dc91829a-368a-4291-968b-0f21bdcd5c09"
        },
        "dataset" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e"
        },
        "data" : {
          "href" : "https://catalog.matatika.com/api/datasets/1eede9d3-7466-4979-8a26-919110ab0e1e/data"
        },
        "workspace" : {
          "href" : "https://catalog.matatika.com/api/workspaces/9ef672fd-1745-427e-a8d7-6802b59b537a"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://catalog.matatika.com/api/notifications?since=2024-04-10T14%3A05%3A04.908114&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Delete a notification

DELETE

/api/notifications/{notification-id}

Deletes the notification {notification-id}.

Prerequisites

  • Notification {notification-id} must exist

Request

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://catalog.matatika.com:443/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc' -i -X DELETE \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://catalog.matatika.com:443/api/notifications/f2f52b66-3b76-4122-862d-be25f7146dcc"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("DELETE", url, headers=headers)

print(response.text.encode('utf8'))

Response

204 No Content

No response body provided.