MockData.ir

Todos

LIVE

Simple tasks linked to users. Filter by completed or userId.

Endpoints

Query params

ParamDescriptionExample
searchSearch todo titlesearch=ship
userIdFilter by user UUIDuserId=…
completedtrue · falsecompleted=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/todos', { params: { completed: false } });
Response
1{2  "data": [3    {4      "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",5      "userId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",6      "title": "Ship Posts docs page",7      "completed": false,8      "createdAt": "2026-09-14T10:00:00.000Z",9      "updatedAt": "2026-09-14T10:00:00.000Z"10    }11  ],12  "pagination": {13    "page": 1,14    "limit": 12,15    "total": 24,16    "totalPages": 217  }18}