Notifications
4 operations in the WP Waterfall API.
- getList notifications
- patchMark a notification read
- getNotification preferences
- putUpdate notification preferences
List notifications
get/notificationsPermalink to List notifications
- Permission:
notifications.read - Dashboard session only, no API key
Newest first. An important notice (important: true) is one the person must act on, such as setting a password. requires_action stays true until the person does the action, and resolved_at is set when they do. It keeps counting as unread until then.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
unread | query | string | One of: true, false. |
category | query | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
Responses
| Status | Body | Description |
|---|---|---|
200 | NotificationList | Notifications |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of Notification | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].category required | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
data[].kind required | string | A dotted kind such as job.succeeded or php.restarted. |
data[].title required | string | |
data[].body required | string | |
data[].link required | string or null | A dashboard path. |
data[].important required | boolean | True for a notice the person must act on, such as setting a password. It cannot be marked read until the action is done (resolved_at is set), and "mark all as read" skips it. |
data[].requires_action required | boolean | True while the notice is important and the action is not done. |
data[].action_key required | string or null | Which action resolves this notice, such as set_password. Null for ordinary notices. |
data[].resolved_at required | string or null (date-time) | When the person did the action. WP Waterfall sets it, then marks the notice read. |
data[].read_at required | string or null (date-time) | |
data[].created_at required | string (date-time) | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Mark a notification read
patch/notifications/{id}Permalink to Mark a notification read
- Permission:
notifications.read - Dashboard session only, no API key
The body is {"read": true}. Read state moves one way: a notification cannot be marked unread again, and any other body answers 422. Marking an important notification read while requires_action is true answers 409 (notification_requires_action). The person has to do the action first, and WP Waterfall then marks it done and read.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the notification. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PatchNotificationRequest
Fields
| Name | Type | Description |
|---|---|---|
read required | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | Notification | Notification |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
category required | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
kind required | string | A dotted kind such as job.succeeded or php.restarted. |
title required | string | |
body required | string | |
link required | string or null | A dashboard path. |
important required | boolean | True for a notice the person must act on, such as setting a password. It cannot be marked read until the action is done (resolved_at is set), and "mark all as read" skips it. |
requires_action required | boolean | True while the notice is important and the action is not done. |
action_key required | string or null | Which action resolves this notice, such as set_password. Null for ordinary notices. |
resolved_at required | string or null (date-time) | When the person did the action. WP Waterfall sets it, then marks the notice read. |
read_at required | string or null (date-time) | |
created_at required | string (date-time) |
Notification preferences
get/users/me/notification-preferencesPermalink to Notification preferences
- Permission:
notifications.read - Dashboard session only, no API key
Returns the person's own setting for every notification category: whether it sends an email (email) and a bell notice (in_app). Needs a dashboard session. A plain API key cannot call it, but the connection of an AI assistant may read the settings of the person who approved it.
Responses
| Status | Body | Description |
|---|---|---|
200 | NotificationPreferences | Preferences |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
preferences required | array of object | |
preferences[].category required | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
preferences[].email required | boolean | |
preferences[].in_app required | boolean | |
preferences[].required required | object | Channels the person cannot turn off. The value is always true for these. |
Update notification preferences
put/users/me/notification-preferencesPermalink to Update notification preferences
- Permission:
notifications.read - Dashboard session only, no API key
Changes email, in_app, or both for the categories you list, each at most once. Categories you leave out keep their values. Turning off a channel that a category requires answers 422 with the reason. Needs a dashboard session: a plain API key cannot call it, but the connection of an AI assistant may change the settings of the person who approved it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PutNotificationPreferencesRequest
Fields
| Name | Type | Description |
|---|---|---|
preferences required | array of object | |
preferences[].category required | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
preferences[].email | boolean | |
preferences[].in_app | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | NotificationPreferences | Preferences |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
preferences required | array of object | |
preferences[].category required | string | One of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news. |
preferences[].email required | boolean | |
preferences[].in_app required | boolean | |
preferences[].required required | object | Channels the person cannot turn off. The value is always true for these. |