const options = {method: 'GET'};
fetch('http://localhost:4010/v1/atlas/notifications/notifications/inbox/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": "<string>",
"category": "<string>",
"priority": "<string>",
"title": "<string>",
"message": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"read": true,
"readAt": "<string>",
"createdAt": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Get single notification by ID (Atlas platform)
const options = {method: 'GET'};
fetch('http://localhost:4010/v1/atlas/notifications/notifications/inbox/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": "<string>",
"category": "<string>",
"priority": "<string>",
"title": "<string>",
"message": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"actionUrl": "<string>",
"clickActionUrl": "<string>",
"primaryActionLabel": "<string>",
"primaryActionUrl": "<string>",
"secondaryActionLabel": "<string>",
"secondaryActionUrl": "<string>",
"read": true,
"readAt": "<string>",
"createdAt": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Was this page helpful?