Skip to content

Members

3 operations in the WP Waterfall API.

List members

get/companies/me/membersPermalink to List members

Lists the people in the company with their roles, in pages of up to 200 (default 50). A Site Admin or Site Developer row carries site_ids, and a caller who is limited to some sites sees only their own sites there. The Billing role cannot read the list, and an API key needs the users:read scope.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: at most 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.

Responses

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

200 response fields

NameTypeDescription
data requiredarray of MemberThe rows of this page.
data[].id requiredstring
data[].user_id requiredstring
data[].email requiredstring (email)
data[].name requiredstring
data[].role requiredstringOne of: owner, admin, developer, billing, viewer, site_admin, site_developer.
data[].site_idsarray of stringThe sites a Site Admin or Site Developer belongs to. Empty for company wide roles.
data[].created_at requiredstring (date-time)
data[].email_verifiedbooleanFalse until the person confirms their email address. Absent when the server does not know.
data[].two_factor_enabledbooleanTrue once the person set up two-factor sign-in.
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.

Update a member role

patch/members/{id}Permalink to Update a member role

  • Dashboard session only, no API key

Changes a member's role. Owners and Admins may call it after a recent sign-in. It answers 422 for a change to owner, for the owner's own row (ownership moves only through a transfer), and for the caller's own role. The person gets an email, and the API keys they made are limited to the new role. Needs a dashboard session: an API key cannot call it.

Parameters

NameInTypeDescription
id requiredpathstringThe id of the member, from the member list.

Responses

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

200 response fields

NameTypeDescription
id requiredstring
user_id requiredstring
email requiredstring (email)
name requiredstring
role requiredstringOne of: owner, admin, developer, billing, viewer, site_admin, site_developer.
site_idsarray of stringThe sites a Site Admin or Site Developer belongs to. Empty for company wide roles.
created_at requiredstring (date-time)
email_verifiedbooleanFalse until the person confirms their email address. Absent when the server does not know.
two_factor_enabledbooleanTrue once the person set up two-factor sign-in.

Remove a member

delete/members/{id}Permalink to Remove a member

  • Dashboard session only, no API key

Removes a person from the company, along with their access to each site, and the API keys they made stop working. Owners and Admins may call it after a recent sign-in. The owner cannot be removed (422). Answers 204. Needs a dashboard session: an API key cannot call it.

Parameters

NameInTypeDescription
id requiredpathstringThe id of the member, from the member list.

Responses

StatusBodyDescription
204Removed
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.