User notification with title, message, type, priority, read status, action URL, and timestamps. Used for notification systems, alert management, and user engagement platforms.
https://api.mockly.codes/notifications?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/notificationsGet a collection of notifications
/social/notifications/notifications/:idGet a single notification by ID
/social/notifications/:id/notifications/metaGet resource metadata and schema
/social/notifications/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/notifications?q=laptopGET https://api.mockly.codes/notifications?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 notifications
fetch('https://api.mockly.codes/notifications?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/notifications?count=10'
)
data = response.json()curl "https://api.mockly.codes/notifications?count=10"fetch('https://api.mockly.codes/notifications?nocache=true')idintegerUnique identifier for the notification
random_intuser_idintegerForeign key reference to the user who receives this notification
random_inttitlestringNotification title or subject
sentencemessagestringNotification message or body text
sentencetypestringNotification type (e.g., like, comment, follow, mention, system)
notification_typeprioritystringNotification priority level (e.g., low, normal, high, urgent)
priorityreadbooleanWhether the notification has been read by the user
booleanaction_urlstringURL to navigate to when the notification is clicked
urluricreated_atstringTimestamp when the notification was created
past_datedate-timeread_atstringTimestamp when the notification was read, null if unread
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request