Notifications
List the workspace's notification rules
The rules that act on forwarded notifications (start an agent turn, call a webhook, …). Secrets in an action are never returned. Rules are created and changed in the Lusor app.
GET
/
v1
/
workspaces
/
{workspaceId}
/
notification-rules
List the workspace's notification rules
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": true,
"deviceId": "<string>",
"package": "<string>",
"titlePattern": "<string>",
"textPattern": "<string>",
"kinds": [
"created"
],
"includeSummaries": true,
"cooldownSeconds": 123,
"action": {
"type": "<string>"
},
"revision": 123,
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List the workspace's notification rules
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/notification-rules"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": true,
"deviceId": "<string>",
"package": "<string>",
"titlePattern": "<string>",
"textPattern": "<string>",
"kinds": [
"created"
],
"includeSummaries": true,
"cooldownSeconds": 123,
"action": {
"type": "<string>"
},
"revision": 123,
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
