Data ModelsApp Notification

App Notification Object Documentation

The App Notification object represents an in-app notification sent to users within Replyke. Notifications can be triggered by various actions such as comments, mentions, upvotes, and follows.

Properties

PropertyTypeDescription
idstringUnique identifier for the notification (UUID).
userIdstringThe recipient’s user ID.
typeAppNotificationTypeThe type of notification (e.g., comment, mention, upvote, etc.).
isReadbooleanIndicates whether the notification has been read.
metadataRecord<string, any> | undefinedAdditional data specific to the notification type.
titlestring | undefinedOptional title for the notification.
contentstring | undefinedOptional content for the notification.
createdAtDateTimestamp when the notification was created.

Notification Types

TypeActionDescription
entity-commentopen-commentA user commented on an entity.
comment-replyopen-commentA user replied to a comment.
entity-mentionopen-entityA user was mentioned in an entity.
comment-mentionopen-commentA user was mentioned in a comment.
entity-upvoteopen-entityA user upvoted an entity.
comment-upvoteopen-commentA user upvoted a comment.
new-followopen-profileA user followed another user.

Metadata Fields by Notification Type

Entity Comment Notification

FieldTypeDescription
entityIdstringID of the entity where the comment was posted.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
commentIdstringID of the comment.
commentContentstring | nullContent of the comment.
initiatorIdstringID of the user who made the comment.
initiatorNamestring | nullName of the user who commented.
initiatorUsernamestring | nullUsername of the user.
initiatorAvatarstring | nullAvatar of the user.

Comment Reply Notification

FieldTypeDescription
entityIdstringID of the entity where the reply was posted.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
commentIdstringID of the original comment.
commentContentstring | nullContent of the original comment.
replyIdstringID of the reply comment.
replyContentstring | nullContent of the reply.
initiatorIdstringID of the user who replied.
initiatorNamestring | nullName of the user who replied.
initiatorUsernamestring | nullUsername of the user who replied.
initiatorAvatarstring | nullAvatar of the user who replied.

Entity Mention Notification

FieldTypeDescription
entityIdstringID of the mentioned entity.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
initiatorIdstringID of the user who mentioned.
initiatorNamestring | nullName of the user who mentioned.
initiatorUsernamestring | nullUsername of the user who mentioned.
initiatorAvatarstring | nullAvatar of the user who mentioned.

Comment Mention Notification

FieldTypeDescription
entityIdstringID of the mentioned entity.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
commentIdstringID of the mentioned comment.
commentContentstring | nullContent of the mentioned comment.
initiatorIdstringID of the user who mentioned.
initiatorNamestring | nullName of the user who mentioned.
initiatorUsernamestring | nullUsername of the user who mentioned.
initiatorAvatarstring | nullAvatar of the user who mentioned.

Entity Upvote Notification

FieldTypeDescription
entityIdstringID of the upvoted entity.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
initiatorIdstringID of the user who upvoted.
initiatorNamestring | nullName of the user who upvoted.
initiatorUsernamestring | nullUsername of the user who upvoted.
initiatorAvatarstring | nullAvatar of the user who upvoted.

Comment Upvote Notification

FieldTypeDescription
entityIdstringID of the entity containing the comment.
entityShortIdstringShortened ID for sharing.
entityTitlestring | nullTitle of the entity.
entityContentstring | nullContent of the entity.
commentIdstringID of the upvoted comment.
commentContentstring | nullContent of the upvoted comment.
initiatorIdstringID of the user who upvoted.
initiatorNamestring | nullName of the user who upvoted.
initiatorUsernamestring | nullUsername of the user who upvoted.
initiatorAvatarstring | nullAvatar of the user who upvoted.

New Follow Notification

FieldTypeDescription
initiatorIdstringID of the user who followed.
initiatorNamestring | nullName of the user who followed.
initiatorUsernamestring | nullUsername of the user who followed.
initiatorAvatarstring | nullAvatar of the user who followed.

Integration Flexibility

The App Notification object is designed to support real-time and historical notifications, allowing users to track relevant interactions within Replyke.