Skip to content

Notifications

4 operations in the WP Waterfall API.

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

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.
unreadquerystringOne of: true, false.
categoryquerystringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.

Responses

StatusBodyDescription
200NotificationListNotifications
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of NotificationThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].category requiredstringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.
data[].kind requiredstringA dotted kind such as job.succeeded or php.restarted.
data[].title requiredstring
data[].body requiredstring
data[].link requiredstring or nullA dashboard path.
data[].important requiredbooleanTrue 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 requiredbooleanTrue while the notice is important and the action is not done.
data[].action_key requiredstring or nullWhich action resolves this notice, such as set_password. Null for ordinary notices.
data[].resolved_at requiredstring or null (date-time)When the person did the action. WP Waterfall sets it, then marks the notice read.
data[].read_at requiredstring or null (date-time)
data[].created_at requiredstring (date-time)
next_cursor requiredstring or nullSend 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the notification.
Idempotency-KeyheaderstringOptional 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

NameTypeDescription
read requiredboolean

Responses

StatusBodyDescription
200NotificationNotification
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
category requiredstringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.
kind requiredstringA dotted kind such as job.succeeded or php.restarted.
title requiredstring
body requiredstring
link requiredstring or nullA dashboard path.
important requiredbooleanTrue 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 requiredbooleanTrue while the notice is important and the action is not done.
action_key requiredstring or nullWhich action resolves this notice, such as set_password. Null for ordinary notices.
resolved_at requiredstring or null (date-time)When the person did the action. WP Waterfall sets it, then marks the notice read.
read_at requiredstring or null (date-time)
created_at requiredstring (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

StatusBodyDescription
200NotificationPreferencesPreferences
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
preferences requiredarray of object
preferences[].category requiredstringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.
preferences[].email requiredboolean
preferences[].in_app requiredboolean
preferences[].required requiredobjectChannels 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

NameInTypeDescription
Idempotency-KeyheaderstringOptional 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

NameTypeDescription
preferences requiredarray of object
preferences[].category requiredstringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.
preferences[].emailboolean
preferences[].in_appboolean

Responses

StatusBodyDescription
200NotificationPreferencesPreferences
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
preferences requiredarray of object
preferences[].category requiredstringOne of: site_health, deployments, backups, domains, security, billing, usage, team, support, product_news.
preferences[].email requiredboolean
preferences[].in_app requiredboolean
preferences[].required requiredobjectChannels the person cannot turn off. The value is always true for these.