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.
Dein Konto schaltet diese Endpunkte frei. Nutze Try it auf der Seite jedes Endpunkts, um Requests zu senden.
Diese Endpunkte brauchen ein kostenloses Konto. Leg eins an oder melde dich an, um ihre Details zu sehen und sie hier auszuprobieren.
- 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.
Beispiel-Request
List notifications with filtering, sorting, search and pagination. Vollständige Referenz und Send-Button (auf Englisch).
curl -X GET "https://api.testingapis.com/api/Notifications?limit=2"[
{
"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)Melde dich an, um die Details zu sehen
Die Parameter, die Beispiele für Request und Antwort und das Live-Panel Try it für diese Endpunkte sind für angemeldete Mitglieder. Konten sind kostenlos und in wenigen Sekunden angelegt.
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.