Notifications

Get notifications

get

Returns a paginated list of notifications for the user

Authorizations
AuthorizationstringRequired

Insert the JWT token here

Query parameters
pageSizenumber · min: 1 · max: 1000Optional

Number of notifications to return

Default: 100
Responses
200

Default Response

application/json
get
/api/public/v1/notifications
GET /api/public/v1/notifications HTTP/1.1
Host: hostname
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "status": 200,
  "data": [
    {
      "id": 2,
      "title": "text",
      "text": "text",
      "target": "123e4567-e89b-12d3-a456-426614174000",
      "lang": "en",
      "origin": "text",
      "readStatus": false,
      "createdAt": "2025-06-19T11:35:58.791Z",
      "translations": {}
    }
  ]
}

Create a notification

post

Creates a new notification

Authorizations
AuthorizationstringRequired

Insert the JWT token here

Body
titlestringRequired

Notification title

textstringRequired

Notification text

targetstring · uuidRequired

Target user UUID

langstringOptional

Language code (e.g., en)

Default: en
originstring | nullableOptional

Origin of the notification

Default: null
readStatusbooleanOptional

Read status of the notification

Default: false
Responses
post
/api/public/v1/notifications
POST /api/public/v1/notifications HTTP/1.1
Host: hostname
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142

{
  "title": "New Mention",
  "text": "Data_Steward mentioned you in a comment on AWS S3 LDC Test_1.",
  "target": "0081abdb-7904-400b-aaac-e1a2365192a0"
}
{
  "status": 201,
  "message": "Notification Created"
}

Last updated