get https://api.nodecraft.studio/v1/notifications
Lists notifications with a date based long poll strategy. Designed to be used as fast as 5-10 second polling.
Responses
Lists notifications with a date based long poll strategy. Designed to be used as fast as 5-10 second polling.
xxxxxxxxxx
GET /v1/notifications HTTP/1.1
Accept: application/json
Host: api.nodecraft.studio
​
​
xxxxxxxxxx
151}
{
"code": "notifications.success",
"message": "Successfully retrieved notifications.",
"success": true,
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"date_created": "2024-01-01T00:00:00.000Z",
"type": "server_kicks",
"subject": "server_allows.pending",
"server": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "private",
"title": "My Server",
"summary": "This is a short summary of the community",
"image_tile": "https://nodecraft.com/image.png"
}
},
{
"id": "00000000-0000-0000-0000-000000000000",
"date_created": "2024-01-01T00:00:00.000Z",
"type": "server_bans",
"subject": "server_allows.pending",
"ban": {
"id": "00000000-0000-0000-0000-000000000000",
"scope": "global",
"date_expires": "2024-01-01T00:00:00.000Z"
},
"server": {