Skip to content

Nodes

3 operations in the WP Waterfall API.

List nodes

get/nodesPermalink to List nodes

  • Scope: nodes:read
  • Permission: nodes.read

Lists the servers your company owns, in pages of up to 200 (default 50). Filter with region and status.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: 1 to 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.
regionquerystring
statusquerystringOne of: provisioning, online, degraded, offline, draining, deleting.

Responses

StatusBodyDescription
200NodeListNodes
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 NodeThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].company_id requiredstring or null (uuid)Null for the shared fleet. Dedicated nodes carry the owning company.
data[].name requiredstring
data[].provider requiredstringOne of: gcp, aws_ec2, aws, other, demo.
data[].region requiredstring
data[].public_ip requiredstring or null
data[].outbound_ip requiredstring or null
data[].agent_version requiredstring or null
data[].status requiredstringOne of: provisioning, online, degraded, offline, draining, deleting.
data[].capacity requiredobject
data[].allocated requiredobject
data[].labels requiredobject
data[].last_heartbeat_at requiredstring or null (date-time)
data[].empty_since requiredstring or null (date-time)When the node first held no environment. Null while it holds one.
data[].auto_delete_at requiredstring or null (date-time)When the empty node cleanup deletes this node if it stays empty. Null for a node the cleanup never deletes (dedicated, kept, demo) or one that holds an environment.
data[].keep requiredbooleanStaff override: true keeps the node running when it is empty.
data[].cleanup_blocked_reason requiredstring or nullWhy the empty node cleanup left this node alone on its last look, for example a container that is still present. Null when nothing blocks it. Staff read this instead of a failed job.
data[].cleanup_next_attempt_at requiredstring or null (date-time)The cleanup does not look at this node again before this time. Null when it is not waiting.
data[].provider_missing_sincestring or null (date-time)When the provider reconcile first found the cloud instance missing. Null while the instance exists. A second check at least 5 minutes later marks the node deleted. The reconcile checks only the shared fleet, so a server a company owns reads null.
data[].removed_reasonstring or nullWhy WP Waterfall marked the node deleted on its own, for example "instance removed outside WP Waterfall". Null for every other node. A company never lists a deleted node, so it reads null here.
data[].cpu_pressure_avg10number or nullCPU pressure of the node from its newest heartbeat (Linux PSI, percent of time some task waited for a CPU) over 10 and 60 seconds. Null until the agent has reported. Staff read it on the Servers page.
data[].cpu_pressure_avg60number or null
data[].cpu_pressurestringThe CPU valve: high when the 60 second average passed 60 percent. A node with high takes no new environment until it falls under 45 percent. Sites already on it keep running. One of: ok, high.

Get a node

get/nodes/{id}Permalink to Get a node

  • Scope: nodes:read
  • Permission: nodes.read

Returns one server your company owns: its name, region, status, addresses, agent version, capacity, and what is allocated on it. A server that is not your company's answers 404.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the server.

Responses

StatusBodyDescription
200NodeNode
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)UUIDv7
company_id requiredstring or null (uuid)Null for the shared fleet. Dedicated nodes carry the owning company.
name requiredstring
provider requiredstringOne of: gcp, aws_ec2, aws, other, demo.
region requiredstring
public_ip requiredstring or null
outbound_ip requiredstring or null
agent_version requiredstring or null
status requiredstringOne of: provisioning, online, degraded, offline, draining, deleting.
capacity requiredobject
capacity.environments requiredintegerRange: 0 to any.
capacity.cpu requiredintegerRange: 0 to any.
capacity.memory_mb requiredintegerRange: 0 to any.
capacity.disk_gb requiredintegerRange: 0 to any.
allocated requiredobject
allocated.environments requiredintegerRange: 0 to any.
allocated.cpu requiredintegerRange: 0 to any.
allocated.memory_mb requiredintegerRange: 0 to any.
allocated.disk_gb requiredintegerRange: 0 to any.
labels requiredobject
last_heartbeat_at requiredstring or null (date-time)
empty_since requiredstring or null (date-time)When the node first held no environment. Null while it holds one.
auto_delete_at requiredstring or null (date-time)When the empty node cleanup deletes this node if it stays empty. Null for a node the cleanup never deletes (dedicated, kept, demo) or one that holds an environment.
keep requiredbooleanStaff override: true keeps the node running when it is empty.

Node capacity and headroom

get/nodes/{id}/capacityPermalink to Node capacity and headroom

  • Scope: nodes:read
  • Permission: nodes.read

Returns the server's capacity, what is allocated, and what is available: capacity minus the allocation minus the 20% headroom, never below zero. accepting_sites says whether new sites may land on it. A server that is not your company's answers 404.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the server.

Responses

StatusBodyDescription
200NodeCapacityCapacity
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
node_id requiredstring (uuid)UUIDv7
capacity requiredobject
capacity.environments requiredintegerRange: 0 to any.
capacity.cpu requiredintegerRange: 0 to any.
capacity.memory_mb requiredintegerRange: 0 to any.
capacity.disk_gb requiredintegerRange: 0 to any.
allocated requiredobject
allocated.environments requiredintegerRange: 0 to any.
allocated.cpu requiredintegerRange: 0 to any.
allocated.memory_mb requiredintegerRange: 0 to any.
allocated.disk_gb requiredintegerRange: 0 to any.
available requiredobjectCapacity minus allocation minus the 20 percent headroom. Never below zero.
available.environments requiredintegerRange: 0 to any.
available.cpu requiredintegerRange: 0 to any.
available.memory_mb requiredintegerRange: 0 to any.
available.disk_gb requiredintegerRange: 0 to any.
headroom_percent requiredintegerRange: 0 to 100.
accepting_sites requiredboolean