Notifications
Manage in-app notifications for endpoint failures, cron job alerts, and important system updates.
Base URL
https://api.hookwatch.dev/v1/notificationsThe Notification Object
Json
Notification Types
endpoint_failure Webhook delivery failed after all retries
cron_failure Cron job execution failed
usage_warning Approaching plan limits
system Platform updates and announcements
List Notifications
Retrieve your notifications with optional filtering.
GET /v1/notificationsQuery Parameters
| Field | Type | Description |
|---|---|---|
limit | number | Maximum notifications to return (default: 20, max: 100) |
offset | number | Number of notifications to skip for pagination |
unread_only | boolean | Only return unread notifications |
Response
Json
Get Unread Count
Get the number of unread notifications.
GET /v1/notifications/unread-countResponse
Json
Mark as Read
Mark a single notification as read.
PUT /v1/notifications/:id/readMark All as Read
Mark all notifications as read.
PUT /v1/notifications/read-allDelete Notification
Delete a single notification.
DELETE /v1/notifications/:idBulk Delete
Delete multiple notifications at once.
DELETE /v1/notifications/bulkRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
ids | string[] | Yes | Array of notification IDs to delete |
Tips
- Poll the unread-count endpoint periodically to show badge counts in your UI
- Use the
datafield to link directly to the relevant resource - Configure notification preferences in your dashboard settings