Notifications
List notifications by user
Returns a paginated list of notifications for the given user. Results are ordered by created_at descending.
get/notifications
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/notifications
- Auth: none declared
Query parameters
userIdstring required
User ID to fetch notifications for. Required.
pagestring
Page number (1-based)
limitstring
Number of items per page (max 100)
Response
Paginated list of notifications
Example response
{
"data": [
{
"id": 115,
"user_id": 1,
"type": "warning",
"message": "Low fuel alert for assigned truck",
"created_at": "2026-03-13T19:10:40.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 50,
"totalPages": 3
}
}Changes
No recorded changes to this operation across all 1 revision of this API.