Benachrichtigungs-API
Benachrichtigungen für Benutzer (Erwähnungen, Likes, Follows, System- und Bestellmeldungen) mit Gelesen-Status. Feste Daten im Speicher: Schreibzugriffe halten bis zum Neustart der App.
- 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.
Beispiel-Request
List notifications with filtering, sorting, search and pagination. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/Notifications?limit=2"Antwort · 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)Filtern, Sortieren und Paginierung
Der Listen-Endpunkt nimmt limit, page, offset, sort, order und q an, dazu jeden Feldnamen als exakten Filter. Die Gesamtzahl kommt im Header X-Total-Count zurück. Schreibzugriffe bleiben bis zum Neustart des Servers im Speicher, Tests können also frei Datensätze anlegen, ändern und löschen. Referenz der Query-Parameter.