Skip to content

Connections

6 operations in the WP Waterfall API.

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

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
200McpConnectionListConnections
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.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of McpConnection
data[].id requiredstring (uuid)
data[].client requiredobject
data[].user requiredobject
data[].scopes requiredarray of string
data[].access requiredstringOne of: full, limited.
data[].role_at_consent requiredstring or null
data[].company_ids requiredarray or nullThe companies the connection may act in. null: every company the person belongs to.
data[].status requiredstringOne of: active, revoked, expired.
data[].last_used_at requiredstring or null (date-time)
data[].created_at requiredstring (date-time)
data[].expires_at requiredstring (date-time)
data[].revoked_at requiredstring or null (date-time)
next_cursorstring 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the MCP connection.

Responses

StatusBodyDescription
200McpConnectionConnection
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.
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.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)
client requiredobject
client.id requiredstring
client.name requiredstring
client.publisher requiredstring or null
client.logo_uri requiredstring or null
user requiredobject
user.id requiredstring
user.email requiredstring or null
user.name requiredstring or null
scopes requiredarray of string
access requiredstringOne of: full, limited.
role_at_consent requiredstring or null
company_ids requiredarray or nullThe companies the connection may act in. null: every company the person belongs to.
status requiredstringOne of: active, revoked, expired.
last_used_at requiredstring or null (date-time)
created_at requiredstring (date-time)
expires_at requiredstring (date-time)
revoked_at requiredstring 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the MCP connection.

Responses

StatusBodyDescription
204Revoked
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.
4XXProblemProblem 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the MCP connection.
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, AnnounceConnection

Fields

NameTypeDescription
event requiredstringOne of: connected, reconnected.

Responses

StatusBodyDescription
204The notice was written
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.
4XXProblemProblem Details (RFC 9457)

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

NameInTypeDescription
id requiredpathstring (uuid)The id of the pending consent request.
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, ConsentDecision

Fields

NameTypeDescription
decision requiredstringOne of: approve, deny.
company_idstring
accessstringWhat the connection may do. Left out means full access. The server keeps it on the grant. One of: full, read_only, toolsets.
toolsetsarray of stringThe tool sets a toolsets connection may use.
reachstringWhich 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_idsarray of string

Responses

StatusBodyDescription
200ConsentResultWhere to send the browser
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.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
redirect_to requiredstring
granted_scopesarray of string
reconnectedbooleanTrue when an existing connection was reconnected in place: nothing to hand back to a client.