Alerts
Alerts can be created by users on datasets. These alerts can then be used to inform users of information related to that dataset.
Requests
- Initialise an alert on a dataset
- Create an alert on a dataset
- View alerts on a dataset
- View an alert
Initialise an alert on a dataset
POST
datasets/{dataset-id}/alerts
Initialises a new alert on a dataset.
Prerequisites
- The authenticated user must own a Matatika account
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
{
"id" : "20493fa9-5221-4e40-9c87-92e8b83cedf6",
"created" : "2025-11-02T06:29:04.091802592",
"lastModified" : "2025-11-02T06:29:04.091804692",
"_links" : {
"create alert" : {
"href" : "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts/20493fa9-5221-4e40-9c87-92e8b83cedf6"
}
}
}
Create an alert on a dataset
PUT
datasets/{dataset-id}/alerts/{alert-id}
Create a new alert on a dataset.
Prerequisites
- The authenticated user must own a Matatika account
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts/20493fa9-5221-4e40-9c87-92e8b83cedf6' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"detail" : "New dataset alert"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts/20493fa9-5221-4e40-9c87-92e8b83cedf6"
data = {
"detail" : "New dataset alert"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
201 Created
{
"id" : "20493fa9-5221-4e40-9c87-92e8b83cedf6",
"created" : "2025-11-02T06:29:04.178828801",
"lastModified" : "2025-11-02T06:29:04.178829301",
"raised" : "2025-11-02T06:29:04.178828801",
"detail" : "New dataset alert",
"_links" : {
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc"
}
}
}
View alerts on a dataset
GET
datasets/{dataset-id}/alerts
View alerts on a dataset.
Prerequisites
- The authenticated user must own a Matatika account
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
{
"_embedded" : {
"alerts" : [ {
"id" : "20493fa9-5221-4e40-9c87-92e8b83cedf6",
"created" : "2025-11-02T06:29:04.178829",
"lastModified" : "2025-11-02T06:29:04.178829",
"raised" : "2025-11-02T06:29:04.178829",
"detail" : "New dataset alert",
"_links" : {
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc/alerts?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 1,
"totalPages" : 1,
"number" : 0
}
}
View an alert
GET
alerts/{alert-id}
View an alert.
Prerequisites
- The authenticated user must own a Matatika account
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/alerts/20493fa9-5221-4e40-9c87-92e8b83cedf6' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/alerts/20493fa9-5221-4e40-9c87-92e8b83cedf6"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
{
"id" : "20493fa9-5221-4e40-9c87-92e8b83cedf6",
"created" : "2025-11-02T06:29:04.178829",
"lastModified" : "2025-11-02T06:29:04.178829",
"raised" : "2025-11-02T06:29:04.178829",
"detail" : "New dataset alert",
"_links" : {
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/49674910-cbf0-4f87-b8e3-d156bb6facbc"
}
}
}