GetNotifications
GetNotifications retrieves a paginated list of notifications for the authenticated user.
/api.v1.notification.NotificationService/GetNotifications Bearer requiredRequest
GetNotificationsRequest
GetNotificationsRequestapi.v1.notification.GetNotificationsRequest2 fields
GetNotificationsRequest specifies pagination for the user's notification list.
pageint32The page number to retrieve (1-based).
limitint32The maximum number of items per page.
{
"page": 1,
"limit": 20
}Response
GetNotificationsResponse
GetNotificationsResponseapi.v1.notification.GetNotificationsResponse2 fields
GetNotificationsResponse contains a page of the user's notifications.
maxint32The total number of notifications available for the user.
{
"data": [
{
"id": 1,
"userId": 1,
"type": "string value",
"title": "Frieren: Beyond Journey’s End",
"body": "Example content",
"link": "/anime/frieren",
"image": "https://example.com/image.webp",
"isRead": true
}
],
"max": 1
}Referenced models
1 nested message types
NotificationItemapi.v1.notification.NotificationItem10 fields
NotificationItem represents a single alert or message for the user.
iduint32Unique database identifier for the notification.
userIduint32ID of the user who received the notification.
typestringHigh-level category for the notification (e.g., "release", "system", "social").
titlestringShort summary or title of the notification.
bodystringDetailed text content of the notification.
linkstringURL or app path to navigate to when the notification is clicked.
imagestringOptional URL to an image related to the notification (e.g., anime poster).
isReadboolIndicates if the notification has been read by the user.
referenceIdstringOptional reference ID to an associated entity (e.g., episode or comment ID).
createdAtstringTimestamp when the notification was generated (RFC3339 format).
Error handling
Common failure codes
unauthenticatedThe Bearer token is missing or invalid.
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.