Connections
6 operations in the WP Waterfall API.
- getList MCP connections for the current company
- getShow one MCP connection
- deleteRevoke an MCP connection
- postTell the person about a connection they just approved
- getRead a pending MCP consent request
- postApprove or deny a pending MCP consent request
List MCP connections for the current company
get/companies/me/connectionsPermalink to List MCP connections for the current company
- Permission:
company.read - Dashboard session only, no API key
Owners and admins see every connection. Other members see the connections they approved. Each has access full, or limited for a connection approved before ADR 121 that the person can reconnect. Revoked connections are not listed; the audit log keeps the history. Expired connections stay listed until revoked. Session only.
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 | McpConnectionList | Connections |
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. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of McpConnection | |
data[].id required | string (uuid) | |
data[].client required | object | |
data[].user required | object | |
data[].scopes required | array of string | |
data[].access required | string | One of: full, limited. |
data[].role_at_consent required | string or null | |
data[].company_ids required | array or null | The companies the connection may act in. null: every company the person belongs to. |
data[].status required | string | One of: active, revoked, expired. |
data[].last_used_at required | string or null (date-time) | |
data[].created_at required | string (date-time) | |
data[].expires_at required | string (date-time) | |
data[].revoked_at required | string or null (date-time) | |
next_cursor | string or null |
Show one MCP connection
get/connections/{id}Permalink to Show one MCP connection
- Permission:
company.read - Dashboard session only, no API key
The approver or a member with api_keys.read. Other members get 404. Session only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the MCP connection. |
Responses
| Status | Body | Description |
|---|---|---|
200 | McpConnection | Connection |
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. |
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. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | |
client required | object | |
client.id required | string | |
client.name required | string | |
client.publisher required | string or null | |
client.logo_uri required | string or null | |
user required | object | |
user.id required | string | |
user.email required | string or null | |
user.name required | string or null | |
scopes required | array of string | |
access required | string | One of: full, limited. |
role_at_consent required | string or null | |
company_ids required | array or null | The companies the connection may act in. null: every company the person belongs to. |
status required | string | One of: active, revoked, expired. |
last_used_at required | string or null (date-time) | |
created_at required | string (date-time) | |
expires_at required | string (date-time) | |
revoked_at required | string or null (date-time) |
Revoke an MCP connection
delete/connections/{id}Permalink to Revoke an MCP connection
- Permission:
company.read - Dashboard session only, no API key
The approver, or a member with api_keys.write. Revoking also revokes the API key the connection minted. Session only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the MCP connection. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Revoked | |
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. |
4XX | Problem | Problem Details (RFC 9457) |
Tell the person about a connection they just approved
post/connections/{id}/announcePermalink to Tell the person about a connection they just approved
- Permission:
company.read - Dashboard session only, no API key
Writes a security notice in the bell and sends the security email for a connection the signed-in person just approved or reconnected. The hosted MCP server calls it with the person's session after Approve. The words come from the stored connection, never from the caller, and only the person who approved the connection can ask. A repeat within the hour sends nothing more. Session only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the MCP connection. |
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, AnnounceConnection
Fields
| Name | Type | Description |
|---|---|---|
event required | string | One of: connected, reconnected. |
Responses
| Status | Body | Description |
|---|---|---|
204 | The notice was written | |
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. |
4XX | Problem | Problem Details (RFC 9457) |
Read a pending MCP consent request
get/oauth/consent/{id}Permalink to Read a pending MCP consent request
- Permission:
company.read - Dashboard session only, no API key
Served by the hosted MCP server at mcp.wpwaterfall.com, not the API. Returns the client, the person, the companies they may connect it to with their roles, and whether two-factor authentication is on. There is no list of scopes: approving grants full access within the person's role (ADR 121). The id is a pending request from a client, or the id of an existing limited connection of the person to reconnect in place. The dashboard page at /dashboard/connect reads it. Signed-in user only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the pending consent request. |
Responses
| Status | Body | Description |
|---|---|---|
200 | ConsentRequest | Consent request |
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. |
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. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
request_id required | string | The pending request id, or the id of an existing connection the person reconnects. |
expires_at required | string (date-time) | |
reconnect required | boolean | True when the page reconnects a limited connection in place instead of starting a new one. |
client required | object | |
client.id required | string | |
client.name required | string | |
client.publisher required | string or null | |
client.logo_uri required | string or null | |
client.redirect_host required | string | |
client.registered_via required | string | |
user required | object | |
user.id required | string | |
user.email required | string | |
user.name required | string | |
two_factor_enabled required | boolean | Whether the person has two-factor on. With it on, Approve needs a recent sign-in. |
companies required | array of object | |
companies[].id required | string | |
companies[].name required | string | |
companies[].role required | string | |
home_company_id | string | Reconnect only: the company the connection was made in, and the companies it reaches now. |
company_ids | array or null |
Approve or deny a pending MCP consent request
post/oauth/consent/{id}Permalink to Approve or deny a pending MCP consent request
- Permission:
company.read - Dashboard session only, no API key
Served by the hosted MCP server at mcp.wpwaterfall.com, not the API. Approve grants every customer scope the person's role allows, including delete and key scopes; staff and fleet scopes are never granted. With two-factor authentication on and a way to confirm (a password, or a passkey that checks the person), Approve answers 403 until the session confirmed it in the last 10 minutes (POST /users/me/step-up, or POST /users/me/step-up/passkey). A person with neither is never asked. Deny returns access_denied to the client. The answer is the URL to send the browser to. Signed-in user only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the pending consent request. |
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, ConsentDecision
Fields
| Name | Type | Description |
|---|---|---|
decision required | string | One of: approve, deny. |
company_id | string | |
access | string | What the connection may do. Left out means full access. The server keeps it on the grant. One of: full, read_only, toolsets. |
toolsets | array of string | The tool sets a toolsets connection may use. |
reach | string | Which companies the connection may act in: every company the person belongs to, now and later, or the ids in company_ids. Left out, a new connection reaches only company_id and a reconnect keeps its list. One of: all, selected. |
company_ids | array of string |
Responses
| Status | Body | Description |
|---|---|---|
200 | ConsentResult | Where to send the browser |
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. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
redirect_to required | string | |
granted_scopes | array of string | |
reconnected | boolean | True when an existing connection was reconnected in place: nothing to hand back to a client. |