Companies
11 operations in the WP Waterfall API.
- postCreate a business (an individual account only)
- getCurrent company
- patchUpdate current company
- postRecord an ad conversion once per company
- postClose a business. Owner only, with the business name typed to confirm
- putTurn Nami AI's access to site content on or off
- getRead the pending ownership transfer
- deleteCancel the pending ownership transfer
- postStart handing the company to an Admin
- postAccept ownership of a company
- postSee what an ownership link offers
Create a business (an individual account only)
post/companiesPermalink to Create a business (an individual account only)
- Dashboard session only, no API key
Creates a business and makes the caller its owner. Only a person working in their individual account may call it: any other account answers 403. One person owns at most 5 businesses, and the next one answers 409. Answers 201 with the company. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
201 | Company | Business |
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 | Only an individual account can create a business |
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. |
201 response fields
| Name | Type | Description |
|---|---|---|
id required | string | |
name required | string | |
slug required | string | |
account_type required | string | One of: individual, agency, enterprise. |
plan required | string or null | |
sso_enforced required | boolean | |
mfa_enforced required | boolean | |
created_at required | string (date-time) | |
billing_access | string | What an unpaid invoice allows: read_only once Stripe's retries end (day 14), suspended from day 30, normal otherwise. Paying restores every site within a minute. One of: normal, read_only, suspended. |
deletion | one of CompanyDeletion, null | Set while the owner has asked to delete the company and it can still be undone. |
nami_site_content | boolean | Nami AI may read the company's site content to answer and act: file contents, database rows, logs, WP-CLI output, WordPress users, traffic, and Safe Updates screenshots and PHP errors. On by default. While it is off the assistant refuses the tools that read site content, and Safe Updates decides by the required match alone, without its AI review. |
Current company
get/companies/mePermalink to Current company
Returns the company the call acts in. deletion is set while a deletion of the company is scheduled and is null otherwise. Every role may read it, and an API key needs the sites:read scope.
Responses
| Status | Body | Description |
|---|---|---|
200 | Company | Company |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string | |
name required | string | |
slug required | string | |
account_type required | string | One of: individual, agency, enterprise. |
plan required | string or null | |
sso_enforced required | boolean | |
mfa_enforced required | boolean | |
created_at required | string (date-time) | |
billing_access | string | What an unpaid invoice allows: read_only once Stripe's retries end (day 14), suspended from day 30, normal otherwise. Paying restores every site within a minute. One of: normal, read_only, suspended. |
deletion | one of CompanyDeletion, null | Set while the owner has asked to delete the company and it can still be undone. |
nami_site_content | boolean | Nami AI may read the company's site content to answer and act: file contents, database rows, logs, WP-CLI output, WordPress users, traffic, and Safe Updates screenshots and PHP errors. On by default. While it is off the assistant refuses the tools that read site content, and Safe Updates decides by the required match alone, without its AI review. |
Update current company
patch/companies/mePermalink to Update current company
- Dashboard session only, no API key
Changes the company name or mfa_enforced, the rule that every member signs in with two-factor. Owners and Admins of a business or enterprise account may call it: an individual account answers 403. A change to mfa_enforced also needs a recent sign-in. Needs a dashboard session: an API key cannot call it.
Responses
| Status | Body | Description |
|---|---|---|
200 | Company | Company |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string | |
name required | string | |
slug required | string | |
account_type required | string | One of: individual, agency, enterprise. |
plan required | string or null | |
sso_enforced required | boolean | |
mfa_enforced required | boolean | |
created_at required | string (date-time) | |
billing_access | string | What an unpaid invoice allows: read_only once Stripe's retries end (day 14), suspended from day 30, normal otherwise. Paying restores every site within a minute. One of: normal, read_only, suspended. |
deletion | one of CompanyDeletion, null | Set while the owner has asked to delete the company and it can still be undone. |
nami_site_content | boolean | Nami AI may read the company's site content to answer and act: file contents, database rows, logs, WP-CLI output, WordPress users, traffic, and Safe Updates screenshots and PHP errors. On by default. While it is off the assistant refuses the tools that read site content, and Safe Updates decides by the required match alone, without its AI review. |
Record an ad conversion once per company
post/companies/me/ad-conversionsPermalink to Record an ad conversion once per company
- Dashboard session only, no API key
Signed-in dashboard session only. The dashboard calls it after sign up (sign_up) and after a checkout returns (purchase). The first call for an event records the time on the company, writes the audit entry company.ad_conversion, and answers fire true; every later call answers fire false and writes nothing. sign_up counts only for the owner of a company made in the last 7 days. purchase answers fire true only once the company has paid, with value_usd, the monthly price of its license in US dollars; before that it answers fire false and records nothing. WP Waterfall staff acting as the customer always get fire false. tx is an opaque hash for the ad platforms to drop a repeat report. Only with fire true does the dashboard report the conversion, through the public site and only when the visitor accepted advertising there.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, AdConversionRequest
Fields
| Name | Type | Description |
|---|---|---|
event required | string | sign_up after the account is made, purchase after a checkout returns. One of: sign_up, purchase. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AdConversionResult | Whether this call is the first for the event |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
fire required | boolean | True only the first time the event is recorded for the company. The dashboard reports the conversion only then, so each company counts once. |
value_usd | number | For purchase: the monthly price of the company's license in US dollars. Range: 0 to any. |
tx required | string | An opaque id for the platforms to drop a repeat report: a hash of the company id and the event. It names no company and cannot be turned back into the id. |
Close a business. Owner only, with the business name typed to confirm
post/companies/me/closePermalink to Close a business. Owner only, with the business name typed to confirm
- Dashboard session only, no API key
Only the owner may call it, after a recent sign-in, with confirmation set to the exact business name (422 otherwise). A paid term runs to its end with no refund and the sites keep serving until then. With no term running the business closes now and its sites are suspended. Answers 202, and the business is erased 30 days after it closes unless the owner undoes the close. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Closure scheduled | |
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 | Only the business owner can close it |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The typed business name does not match |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
Turn Nami AI's access to site content on or off
put/companies/me/nami-site-contentPermalink to Turn Nami AI's access to site content on or off
- Dashboard session only, no API key
Owner or Admin, in a signed-in dashboard session; an API key and WP Waterfall staff acting as the customer are refused. Off: Nami AI refuses the tools that read site content (files, database rows, logs, WP-CLI output, WordPress users, and traffic), and Safe Updates decides by the required match alone, without its AI review. Nothing else changes. On by default. Writes the audit entry company.nami_site_content.
Request body application/json, required, SetNamiSiteContent
Fields
| Name | Type | Description |
|---|---|---|
enabled required | boolean | True lets Nami AI read site content, false turns that off for the whole company. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Company | The company, with nami_site_content |
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 | Only an Owner or an Admin in the dashboard can change it |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string | |
name required | string | |
slug required | string | |
account_type required | string | One of: individual, agency, enterprise. |
plan required | string or null | |
sso_enforced required | boolean | |
mfa_enforced required | boolean | |
created_at required | string (date-time) | |
billing_access | string | What an unpaid invoice allows: read_only once Stripe's retries end (day 14), suspended from day 30, normal otherwise. Paying restores every site within a minute. One of: normal, read_only, suspended. |
deletion | one of CompanyDeletion, null | Set while the owner has asked to delete the company and it can still be undone. |
nami_site_content | boolean | Nami AI may read the company's site content to answer and act: file contents, database rows, logs, WP-CLI output, WordPress users, traffic, and Safe Updates screenshots and PHP errors. On by default. While it is off the assistant refuses the tools that read site content, and Safe Updates decides by the required match alone, without its AI review. |
Read the pending ownership transfer
get/companies/me/ownership-transferPermalink to Read the pending ownership transfer
- Dashboard session only, no API key
Returns { pending: null } when no transfer waits. Owners and Admins can read it.
Responses
| Status | Body | Description |
|---|---|---|
200 | The pending transfer or null | |
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. |
Cancel the pending ownership transfer
delete/companies/me/ownership-transferPermalink to Cancel the pending ownership transfer
- Dashboard session only, no API key
Owner only. The link in the email stops working. Nothing else changes.
Responses
| Status | Body | Description |
|---|---|---|
204 | Cancelled | |
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 | No transfer is pending |
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. |
Start handing the company to an Admin
post/companies/me/transfer-ownershipPermalink to Start handing the company to an Admin
- Dashboard session only, no API key
Owner only, with a recent sign-in. The body names the Admin (member_id) and the company name typed exactly (confirmation). The Admin needs a verified email and two-factor sign-in when the company requires it. Nothing changes yet: the Admin gets an email with a link that works for 7 days. Starting a new transfer replaces a pending one. Answers 409 when the Admin or the Owner changed meanwhile.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
201 | The pending transfer | |
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 | Only the Owner can start it, and it needs a recent sign-in |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The member cannot receive ownership, or the name does not match |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
Accept ownership of a company
post/ownership-transfers/acceptPermalink to Accept ownership of a company
- Dashboard session only, no API key
The signed-in Admin named in the email sends the token. The Admin becomes the Owner and the former Owner becomes an Admin, in one step. When billing emails go to the former Owner, billing_contact must be keep or new_owner. Needs a verified email, and two-factor sign-in when the company requires it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | You are the Owner | |
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 link is not for this account, or it is not valid |
409 | Problem | The Owner or the Admin changed since the link was sent |
410 | Problem | The link expired |
422 | Problem | A requirement is not met, or a choice is missing |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
See what an ownership link offers
post/ownership-transfers/previewPermalink to See what an ownership link offers
- Dashboard session only, no API key
The signed-in Admin named in the email sends the token. Changes nothing. Answers the company name, who is handing it over, and whether billing emails go to that person.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | The offer | |
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 link is not for this account, or it is not valid |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
410 | Problem | The link expired |
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. |