Overview
Returns a paginated list of notifications for the currently authenticated user. Notifications include investigation progress updates, remediation proposals requiring approval, and incident status changes.
Required role: admin or member
Query parameters
Filter by read status. One of: unread, read, all.
Number of notifications to return per page. Maximum 100.
Cursor token from a previous response to fetch the next page. Omit for the first page.
Response
Returns 200 OK with a paginated list of notifications.
{
"notifications": [
{
"id": "ntf_01HX9VTPQR3KF8MZWBYD5N6JCE",
"type": "approval.requested",
"message": "Remediation 'Scale payment processor connection pool from 50 to 150' requires your approval.",
"status": "unread",
"incidentId": "inc_01HX9VTPQR3KF8MZWBYD5N6JCE",
"remediationId": "rem_01HX9VTPQR3KF8MZWBYD5N6JCE",
"createdAt": "2024-04-01T14:35:05Z"
},
{
"id": "ntf_01HX9VTPQR3KF8MZWBYD5N6JCF",
"type": "investigation.completed",
"message": "Investigation complete for 'Database latency spike on prod-db-01'. Root cause identified with 94% confidence.",
"status": "read",
"incidentId": "inc_01HX9VTPQR3KF8MZWBYD5N6JCF",
"remediationId": null,
"createdAt": "2024-04-01T13:10:00Z"
}
],
"unreadCount": 3,
"cursor": "eyJpZCI6Im50Zl8..."
}
| Field | Type | Description |
|---|
id | string | Unique identifier for the notification |
type | string | Notification type (matches SSE event types) |
message | string | Human-readable notification message |
status | string | Read status: unread or read |
incidentId | string | Associated incident identifier. May be null for system notifications |
remediationId | string | Associated remediation identifier. null if not remediation-related |
createdAt | string | ISO 8601 timestamp when the notification was created |
unreadCount | integer | Total number of unread notifications for the user across all pages |
cursor | string | Cursor token for the next page. null if no more pages. |
Examples
# Fetch unread notifications
curl "https://api.causeflow.ai/v1/notifications?status=unread&limit=20" \
-H "Authorization: Bearer <token>"