curl -X GET "https://api.example.com/api/notifications" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"userName": "johndoe"
}'
[
{
"initiatorId": 67890,
"initiatorName": "janedoe",
"notifType": "Like",
"initiatorProfileImageUrl": "https://media.example.com/profiles/janedoe.jpg",
"CreatedAt": "2026-03-04T15:30:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 11111,
"initiatorName": "bobsmith",
"notifType": "Follow",
"initiatorProfileImageUrl": "https://defaults.com/default.png",
"CreatedAt": "2026-03-04T14:20:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 22222,
"initiatorName": "alice_wonder",
"notifType": "Comment",
"initiatorProfileImageUrl": "https://media.example.com/profiles/alice.jpg",
"CreatedAt": "2026-03-04T12:10:00Z",
"CommentText": null,
"likedPostID": null
}
]
curl -X GET "https://api.example.com/api/notifications" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"userName": "johndoe"
}'
[
{
"initiatorId": 67890,
"initiatorName": "janedoe",
"notifType": "Like",
"initiatorProfileImageUrl": "https://media.example.com/profiles/janedoe.jpg",
"CreatedAt": "2026-03-04T15:30:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 11111,
"initiatorName": "bobsmith",
"notifType": "Follow",
"initiatorProfileImageUrl": "https://defaults.com/default.png",
"CreatedAt": "2026-03-04T14:20:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 22222,
"initiatorName": "alice_wonder",
"notifType": "Comment",
"initiatorProfileImageUrl": "https://media.example.com/profiles/alice.jpg",
"CreatedAt": "2026-03-04T12:10:00Z",
"CommentText": null,
"likedPostID": null
}
]
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.
"Follow" - User followed you"Like" - User liked your post"Comment" - User commented on your post"https://defaults.com/default.png" if not set.Models/Interactions.cs:
public class Notification
{
[Key]
public long NotificationID { get; set; }
public long ReceivingUserID { get; set; }
public User ReceivingUser { get; set; } = null!;
public long InitaiatorID { get; set; } // Note: typo in source
public User Initaiator { get; set; } = null!;
public enum NotifType
{
Follow,
Like,
Comment
}
[Required(ErrorMessage = "Please specify a valid Notification Type")]
public NotifType NotificationType { get; set; }
public DateTime CreatedAt { get; set; }
}
InitaiatorID instead of InitiatorID. This is preserved in the database schema but normalized to initiatorId in the API response.CreatedAt in descending order (most recent first), as determined by the database query in notification.action.cs:22.
CommentText and likedPostID are defined in the response model but not yet populated (per notification.action.cs:10)curl -X GET "https://api.example.com/api/notifications" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"userName": "johndoe"
}'
[
{
"initiatorId": 67890,
"initiatorName": "janedoe",
"notifType": "Like",
"initiatorProfileImageUrl": "https://media.example.com/profiles/janedoe.jpg",
"CreatedAt": "2026-03-04T15:30:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 11111,
"initiatorName": "bobsmith",
"notifType": "Follow",
"initiatorProfileImageUrl": "https://defaults.com/default.png",
"CreatedAt": "2026-03-04T14:20:00Z",
"CommentText": null,
"likedPostID": null
},
{
"initiatorId": 22222,
"initiatorName": "alice_wonder",
"notifType": "Comment",
"initiatorProfileImageUrl": "https://media.example.com/profiles/alice.jpg",
"CreatedAt": "2026-03-04T12:10:00Z",
"CommentText": null,
"likedPostID": null
}
]