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" : "82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
  "created" : "2024-12-16T10:02:38.429639",
  "lastModified" : "2024-12-16T10:02:38.429639",
  "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" : "0b3d33c6-ea30-4828-8868-6ead46604168",
      "message" : "SIT-generated comment",
      "likeCount" : 0,
      "created" : "2024-12-16T10:02:37.522335",
      "lastModified" : "2024-12-16T10:02:37.522335",
      "from" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "commentCount" : 0,
      "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
    },
    "dataset" : {
      "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
      "published" : "2024-12-16T10:02:35.520198",
      "alias" : "analytics-tables",
      "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
      "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 = 'oezinjh'```",
      "likeCount" : 0,
      "commentCount" : 0,
      "viewCount" : 0,
      "created" : "2024-12-16T10:02:35.520198",
      "score" : 1.0
    },
    "workspace" : {
      "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
      "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
    }
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"
    },
    "delete notification" : {
      "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
      "type" : "DELETE"
    },
    "channel" : {
      "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
    },
    "datasetComment" : {
      "href" : "https://app.matatika.com/api/comments/0b3d33c6-ea30-4828-8868-6ead46604168"
    },
    "dataset" : {
      "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
    },
    "data" : {
      "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
    },
    "workspace" : {
      "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
    }
  }
}

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://app.matatika.com/api/notifications?before=2024-12-16T10%3A02%3A38.732841&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://app.matatika.com/api/notifications?before=2024-12-16T10%3A02%3A38.732841&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" : "82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
      "created" : "2024-12-16T10:02:38.429639",
      "lastModified" : "2024-12-16T10:02:38.429639",
      "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" : "0b3d33c6-ea30-4828-8868-6ead46604168",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:37.522335",
          "lastModified" : "2024-12-16T10:02:37.522335",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/0b3d33c6-ea30-4828-8868-6ead46604168"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    }, {
      "id" : "71326f25-da21-4b70-b461-4bbe02d048a8",
      "created" : "2024-12-16T10:02:37.341006",
      "lastModified" : "2024-12-16T10:02:37.341006",
      "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" : "c9b2c8a2-05d3-4054-8136-0c747f87ab33",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:37.03357",
          "lastModified" : "2024-12-16T10:02:37.03357",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/71326f25-da21-4b70-b461-4bbe02d048a8"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/71326f25-da21-4b70-b461-4bbe02d048a8",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/c9b2c8a2-05d3-4054-8136-0c747f87ab33"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    }, {
      "id" : "063eb320-015e-4d85-a108-488f673a0c0e",
      "created" : "2024-12-16T10:02:37.13481",
      "lastModified" : "2024-12-16T10:02:37.13481",
      "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" : "870ff31c-eb9e-45da-b254-66b28409abe0",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:36.708317",
          "lastModified" : "2024-12-16T10:02:36.708317",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/063eb320-015e-4d85-a108-488f673a0c0e"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/063eb320-015e-4d85-a108-488f673a0c0e",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/870ff31c-eb9e-45da-b254-66b28409abe0"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/notifications?before=2024-12-16T10%3A02%3A38.732841&since=2021-01-01T00%3A00&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 3,
    "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://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1/notifications?before=2024-12-16T10%3A02%3A39.022624&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://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1/notifications?before=2024-12-16T10%3A02%3A39.022624&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" : "82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
      "created" : "2024-12-16T10:02:38.429639",
      "lastModified" : "2024-12-16T10:02:38.429639",
      "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" : "0b3d33c6-ea30-4828-8868-6ead46604168",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:37.522335",
          "lastModified" : "2024-12-16T10:02:37.522335",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/0b3d33c6-ea30-4828-8868-6ead46604168"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    }, {
      "id" : "71326f25-da21-4b70-b461-4bbe02d048a8",
      "created" : "2024-12-16T10:02:37.341006",
      "lastModified" : "2024-12-16T10:02:37.341006",
      "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" : "c9b2c8a2-05d3-4054-8136-0c747f87ab33",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:37.03357",
          "lastModified" : "2024-12-16T10:02:37.03357",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/71326f25-da21-4b70-b461-4bbe02d048a8"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/71326f25-da21-4b70-b461-4bbe02d048a8",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/c9b2c8a2-05d3-4054-8136-0c747f87ab33"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    }, {
      "id" : "063eb320-015e-4d85-a108-488f673a0c0e",
      "created" : "2024-12-16T10:02:37.13481",
      "lastModified" : "2024-12-16T10:02:37.13481",
      "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" : "870ff31c-eb9e-45da-b254-66b28409abe0",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:36.708317",
          "lastModified" : "2024-12-16T10:02:36.708317",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/063eb320-015e-4d85-a108-488f673a0c0e"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/063eb320-015e-4d85-a108-488f673a0c0e",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/870ff31c-eb9e-45da-b254-66b28409abe0"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1/notifications?before=2024-12-16T10%3A02%3A39.022624&since=2021-01-01T00%3A00&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 3,
    "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://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"

headers = {
  'Authorization': ACCESS_TOKEN
}

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

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

Response

200 OK

Notification with HAL links.

{
  "id" : "82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
  "created" : "2024-12-16T10:02:38.429639",
  "lastModified" : "2024-12-16T10:02:38.429639",
  "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" : "0b3d33c6-ea30-4828-8868-6ead46604168",
      "message" : "SIT-generated comment",
      "likeCount" : 0,
      "created" : "2024-12-16T10:02:37.522335",
      "lastModified" : "2024-12-16T10:02:37.522335",
      "from" : {
        "id" : "auth0|5eb0327cbfd7490bff55feeb",
        "name" : "[email protected]",
        "handle" : "@sit+prod"
      },
      "commentCount" : 0,
      "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
    },
    "dataset" : {
      "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
      "published" : "2024-12-16T10:02:35.520198",
      "alias" : "analytics-tables",
      "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
      "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 = 'oezinjh'```",
      "likeCount" : 0,
      "commentCount" : 0,
      "viewCount" : 0,
      "created" : "2024-12-16T10:02:35.520198",
      "score" : 1.0
    },
    "workspace" : {
      "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
      "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
    }
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"
    },
    "delete notification" : {
      "href" : "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4",
      "type" : "DELETE"
    },
    "channel" : {
      "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
    },
    "datasetComment" : {
      "href" : "https://app.matatika.com/api/comments/0b3d33c6-ea30-4828-8868-6ead46604168"
    },
    "dataset" : {
      "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
    },
    "data" : {
      "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
    },
    "workspace" : {
      "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
    }
  }
}

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://app.matatika.com/api/notifications?since=2024-12-16T10%3A02%3A40.525822' -i -X PUT \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://app.matatika.com/api/notifications?since=2024-12-16T10%3A02%3A40.525822"

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" : "a88e8c32-4e03-4609-a6c0-252d9d69a9fb",
      "created" : "2024-12-16T10:02:41.608439",
      "lastModified" : "2024-12-16T10:02:41.608439",
      "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" : "31cd4968-6dea-4091-add7-b445b89fd259",
          "message" : "SIT-generated comment",
          "likeCount" : 0,
          "created" : "2024-12-16T10:02:41.444002",
          "lastModified" : "2024-12-16T10:02:41.444002",
          "from" : {
            "id" : "auth0|5eb0327cbfd7490bff55feeb",
            "name" : "[email protected]",
            "handle" : "@sit+prod"
          },
          "commentCount" : 0,
          "datasetId" : "def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "dataset" : {
          "id" : "def52ea4-d0da-4115-903e-805ab4ddb923",
          "published" : "2024-12-16T10:02:35.520198",
          "alias" : "analytics-tables",
          "workspaceId" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "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 = 'oezinjh'```",
          "likeCount" : 0,
          "commentCount" : 0,
          "viewCount" : 0,
          "created" : "2024-12-16T10:02:35.520198",
          "score" : 1.0
        },
        "workspace" : {
          "id" : "e01abfff-543d-4105-aec8-e393e35f72b1",
          "name" : "Test Workspace [2024-12-16T10:02:35.101036864]"
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/notifications/a88e8c32-4e03-4609-a6c0-252d9d69a9fb"
        },
        "delete notification" : {
          "href" : "https://app.matatika.com/api/notifications/a88e8c32-4e03-4609-a6c0-252d9d69a9fb",
          "type" : "DELETE"
        },
        "channel" : {
          "href" : "https://app.matatika.com/api/channels/728aad16-be40-403b-92e6-46789e3303b3"
        },
        "datasetComment" : {
          "href" : "https://app.matatika.com/api/comments/31cd4968-6dea-4091-add7-b445b89fd259"
        },
        "dataset" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923"
        },
        "data" : {
          "href" : "https://app.matatika.com/api/datasets/def52ea4-d0da-4115-903e-805ab4ddb923/data"
        },
        "workspace" : {
          "href" : "https://app.matatika.com/api/workspaces/e01abfff-543d-4105-aec8-e393e35f72b1"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/notifications?since=2024-12-16T10%3A02%3A40.525822&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://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4' -i -X DELETE \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json' \
    -H 'Content-Type: application/json'

Python (requests)

import requests

url = "https://app.matatika.com/api/notifications/82e3d6ff-0c56-424a-94e3-3c74e86d5dd4"

headers = {
  'Authorization': ACCESS_TOKEN
}

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

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

Response

204 No Content

No response body provided.