通知 API
既読状態付きのユーザー通知(メンション、いいね、フォロー、システムと注文のお知らせ)。メモリ上の固定データで、書き込みはアプリの再起動まで残ります。
あなたのアカウントでこれらのエンドポイントが使えます。各エンドポイントのページの Try it でリクエストを送れます。
- GET
https://api.testingapis.com/api/NotificationsList notifications with filtering, sorting, search and paginationList notifications with filtering, sorting, search and pagination. - GET
https://api.testingapis.com/api/Notifications/{id}Get a notification by IDGet a notification by ID. - PUT
https://api.testingapis.com/api/Notifications/{id}/readMark a notification as readMark a notification as read. - PUT
https://api.testingapis.com/api/Notifications/read-allMark all notifications as read, for one user or for everyoneMark 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)サインインして詳細を見る
これらのエンドポイントのパラメータ、リクエストとレスポンスの例、ライブの Try it パネルは、サインインしたメンバー向けです。アカウントは無料で、数秒で作成できます。
絞り込み、並べ替え、ページネーション
一覧エンドポイントは limit、page、offset、sort、order、q を受け付け、任意のフィールド名を完全一致の絞り込みに使えます。件数は X-Total-Count ヘッダーで返ります。書き込みはサーバーを再起動するまでメモリに残るので、テストで自由にレコードを作成・変更・削除できます。 クエリパラメータのリファレンス.