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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: at most 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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | MemberList | Members |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of Member | The rows of this page. |
data[].id required | string | |
data[].user_id required | string | |
data[].email required | string (email) | |
data[].name required | string | |
data[].role required | string | One of: owner, admin, developer, billing, viewer, site_admin, site_developer. |
data[].site_ids | array of string | The sites a Site Admin or Site Developer belongs to. Empty for company wide roles. |
data[].created_at required | string (date-time) | |
data[].email_verified | boolean | False until the person confirms their email address. Absent when the server does not know. |
data[].two_factor_enabled | boolean | True once the person set up two-factor sign-in. |
next_cursor required | string or null | Send 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | The id of the member, from the member list. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Member | Member |
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. |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string | |
user_id required | string | |
email required | string (email) | |
name required | string | |
role required | string | One of: owner, admin, developer, billing, viewer, site_admin, site_developer. |
site_ids | array of string | The sites a Site Admin or Site Developer belongs to. Empty for company wide roles. |
created_at required | string (date-time) | |
email_verified | boolean | False until the person confirms their email address. Absent when the server does not know. |
two_factor_enabled | boolean | True 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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | The id of the member, from the member list. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Removed | |
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. |