Base path: /notifications Authentication: session cookie.

GET /notifications

curl https://api.jetscrape.com/notifications -b cookies.txt
{
  "notifications": [
    {
      "id": "notif_abc123",
      "userId": "usr_abc",
      "type": "info",
      "title": "Scrape finished",
      "body": "Your flow completed successfully.",
      "actionUrl": "/flows/flow_abc123",
      "isRead": false,
      "createdAt": "2025-06-08T10:00:00.000Z"
    }
  ],
  "unreadCount": 3
}
  • type — info, warning, error or success; use it to pick an icon and colour.
  • actionUrl — where to send the user when they click the notification.
  • isRead — read state.
  • unreadCount — the number for the badge.

PATCH /notifications/:id/read

curl -X PATCH https://api.jetscrape.com/notifications/notif_abc123/read -b cookies.txt
{ "id": "notif_abc123", "isRead": true, "updatedAt": "2025-06-08T11:00:00.000Z" }

PATCH /notifications/read-all

curl -X PATCH https://api.jetscrape.com/notifications/read-all -b cookies.txt

Interface notes

  • Feed the badge from unreadCount; no separate request is needed.
  • Mark as read optimistically: update the UI immediately and roll back if the call fails.
  • Refresh on dashboard load and when the user opens the panel, rather than polling constantly.

Errors: 401 no session · 404 the notification does not exist or belongs to someone else.

Last updated: September 22, 2026