MockData.ir

Notifications

LIVE

User notifications with type and read flags.

Endpoints

Query params

ParamDescriptionExample
searchTitle or messagesearch=welcome
userIdFilter by user UUIDuserId=…
typeinfo · success · warning · errortype=warning
readtrue · falseread=false
sortcreatedAt · titlesort=title
pagePage number · default 1page=2
limitPage size · default 12 · max 50limit=12
orderasc · descorder=asc
langPass fa for Persian text · omit for English (default)lang=fa
delayArtificial wait in ms · max 5000delay=800
statusForce error HTTP status · 400–599status=500

Persian text: add lang=fa. See Docs · Language.

Request
1const { data } = await axios.get('/api/notifications', { params: { read: false } });
Response
1{2  "data": [3    {4      "id": "c9d0e1f2-a3b4-5678-c345-789012345678",5      "userId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",6      "title": "Welcome to MockData",7      "message": "Your workspace seed data is ready to explore.",8      "type": "success",9      "read": false,10      "createdAt": "2026-09-14T10:00:00.000Z",11      "updatedAt": "2026-09-14T10:00:00.000Z"12    }13  ],14  "pagination": {15    "page": 1,16    "limit": 12,17    "total": 24,18    "totalPages": 219  }20}