Skip to content

Companies

11 operations in the WP Waterfall API.

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
201CompanyBusiness
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.
403ProblemOnly an individual account can create a business
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.

201 response fields

NameTypeDescription
id requiredstring
name requiredstring
slug requiredstring
account_type requiredstringOne of: individual, agency, enterprise.
plan requiredstring or null
sso_enforced requiredboolean
mfa_enforced requiredboolean
created_at requiredstring (date-time)
billing_accessstringWhat 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.
deletionone of CompanyDeletion, nullSet while the owner has asked to delete the company and it can still be undone.
nami_site_contentbooleanNami 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

StatusBodyDescription
200CompanyCompany
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.

200 response fields

NameTypeDescription
id requiredstring
name requiredstring
slug requiredstring
account_type requiredstringOne of: individual, agency, enterprise.
plan requiredstring or null
sso_enforced requiredboolean
mfa_enforced requiredboolean
created_at requiredstring (date-time)
billing_accessstringWhat 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.
deletionone of CompanyDeletion, nullSet while the owner has asked to delete the company and it can still be undone.
nami_site_contentbooleanNami 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

StatusBodyDescription
200CompanyCompany
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.

200 response fields

NameTypeDescription
id requiredstring
name requiredstring
slug requiredstring
account_type requiredstringOne of: individual, agency, enterprise.
plan requiredstring or null
sso_enforced requiredboolean
mfa_enforced requiredboolean
created_at requiredstring (date-time)
billing_accessstringWhat 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.
deletionone of CompanyDeletion, nullSet while the owner has asked to delete the company and it can still be undone.
nami_site_contentbooleanNami 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
event requiredstringsign_up after the account is made, purchase after a checkout returns. One of: sign_up, purchase.

Responses

StatusBodyDescription
200AdConversionResultWhether this call is the first for the event
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.

200 response fields

NameTypeDescription
fire requiredbooleanTrue only the first time the event is recorded for the company. The dashboard reports the conversion only then, so each company counts once.
value_usdnumberFor purchase: the monthly price of the company's license in US dollars. Range: 0 to any.
tx requiredstringAn 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
202Closure scheduled
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.
403ProblemOnly the business owner can close it
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe typed business name does not match
429ProblemA 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

NameTypeDescription
enabled requiredbooleanTrue lets Nami AI read site content, false turns that off for the whole company.

Responses

StatusBodyDescription
200CompanyThe company, with nami_site_content
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.
403ProblemOnly an Owner or an Admin in the dashboard can change it
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.

200 response fields

NameTypeDescription
id requiredstring
name requiredstring
slug requiredstring
account_type requiredstringOne of: individual, agency, enterprise.
plan requiredstring or null
sso_enforced requiredboolean
mfa_enforced requiredboolean
created_at requiredstring (date-time)
billing_accessstringWhat 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.
deletionone of CompanyDeletion, nullSet while the owner has asked to delete the company and it can still be undone.
nami_site_contentbooleanNami 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

StatusBodyDescription
200The pending transfer or null
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.

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

StatusBodyDescription
204Cancelled
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.
404ProblemNo transfer is pending
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.

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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
201The pending transfer
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.
403ProblemOnly the Owner can start it, and it needs a recent sign-in
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe member cannot receive ownership, or the name does not match
429ProblemA 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200You are the Owner
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 link is not for this account, or it is not valid
409ProblemThe Owner or the Admin changed since the link was sent
410ProblemThe link expired
422ProblemA requirement is not met, or a choice is missing
429ProblemA 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200The offer
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 link is not for this account, or it is not valid
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
410ProblemThe link expired
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.