通知 API
既読状態付きのユーザー通知(メンション、いいね、フォロー、システムと注文のお知らせ)。メモリ上の固定データで、書き込みはアプリの再起動まで残ります。
- GET
https://api.testingapis.com/api/NotificationsList notifications with filtering, sorting, search and pagination. - GET
https://api.testingapis.com/api/Notifications/{id}Get a notification by ID. - PUT
https://api.testingapis.com/api/Notifications/{id}/readMark a notification as read. - PUT
https://api.testingapis.com/api/Notifications/read-allMark all notifications as read, for one user or for everyone.
リクエストの例
List notifications with filtering, sorting, search and pagination. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/Notifications?limit=2"レスポンス · 200 OK
[
{
"id": 1,
"userId": 101,
"type": "mention",
"title": "You were mentioned in a comment",
"body": "Liam mentioned you in 'API Design Patterns'",
"read": false,
"link": "/posts/3",
"createdAt": "2025-07-17T08:30:00Z"
},
{
… (3 more lines)絞り込み、並べ替え、ページネーション
一覧エンドポイントは limit、page、offset、sort、order、q を受け付け、任意のフィールド名を完全一致の絞り込みに使えます。件数は X-Total-Count ヘッダーで返ります。書き込みはサーバーを再起動するまでメモリに残るので、テストで自由にレコードを作成・変更・削除できます。 クエリパラメータのリファレンス.