Notifications
List forwarded notifications
Notifications the workspace’s phones forwarded, newest first, each
with the rules that fired on it. Page backwards with before set to
the last row’s receivedAt.
GET
/
v1
/
workspaces
/
{workspaceId}
/
notifications
List forwarded notifications
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/notifications \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/notifications', 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}/notifications"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"deviceId": "<string>",
"kind": "<string>",
"key": "<string>",
"package": "<string>",
"appName": "<string>",
"title": "<string>",
"text": "<string>",
"subText": "<string>",
"postedAt": "2023-11-07T05:31:56Z",
"receivedAt": "2023-11-07T05:31:56Z",
"actions": "<unknown>",
"replyable": true,
"firings": [
{
"id": "<string>",
"ruleId": "<string>",
"ruleName": "<string>",
"outcome": "<string>",
"sessionId": "<string>",
"detail": "<string>"
}
]
}
]
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Was this page helpful?
⌘I
List forwarded notifications
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/notifications \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/notifications', 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}/notifications"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"deviceId": "<string>",
"kind": "<string>",
"key": "<string>",
"package": "<string>",
"appName": "<string>",
"title": "<string>",
"text": "<string>",
"subText": "<string>",
"postedAt": "2023-11-07T05:31:56Z",
"receivedAt": "2023-11-07T05:31:56Z",
"actions": "<unknown>",
"replyable": true,
"firings": [
{
"id": "<string>",
"ruleId": "<string>",
"ruleName": "<string>",
"outcome": "<string>",
"sessionId": "<string>",
"detail": "<string>"
}
]
}
]
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
