List of all notifications
const response = await fetch('https://beta.data.banyan.computer/api/v1/notifications', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
[ { "id": "text", "user_id": "text", "dismissable": false, "message": "text", "message_key": "text", "severity": "text" } ]
Notification deleted successfully
const response = await fetch('https://beta.data.banyan.computer/api/v1/notifications/{notification_id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "msg": "text" }