Feed & Notifications
Get notifications
GET
Retrieve notifications for the authenticated user. Returns all notifications received by the user, including follows, likes, and comments from other users.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/0xfelaback/Social-Media-Activity-Feed/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires authentication via Bearer token in the Authorization header.Request Body
Username of the authenticated user to retrieve notifications for
Response
Returns an array of notification objects ordered by creation time (most recent first).User ID of the user who triggered the notification (e.g., the user who followed, liked, or commented)
Username of the user who triggered the notification
Type of notification. One of:
"Follow"- User followed you"Like"- User liked your post"Comment"- User commented on your post
Profile image URL of the user who triggered the notification. Defaults to
"https://defaults.com/default.png" if not set.ISO 8601 timestamp when the notification was created
Text content of the comment (for Comment notifications). Currently not implemented in the response.
ID of the post that was liked (for Like notifications). Currently not implemented in the response.
Notification Model
The underlying database model fromModels/Interactions.cs:
The source code contains a typo:
InitaiatorID instead of InitiatorID. This is preserved in the database schema but normalized to initiatorId in the API response.Ordering
Notifications are ordered byCreatedAt in descending order (most recent first), as determined by the database query in notification.action.cs:22.
Implementation Notes
- The endpoint currently retrieves all notifications for the user without pagination
- Additional fields
CommentTextandlikedPostIDare defined in the response model but not yet populated (pernotification.action.cs:10) - Future enhancements will include TPH/TPT (Table Per Hierarchy/Table Per Type) to provide richer notification details with comment text and post IDs