---
title: "`GET /internal/nodes/{node_id}/network/peers`"
method: GET
path: "/internal/nodes/{node_id}/network/peers"
tags: ["Nodes"]
---

# \`GET /internal/nodes/{node_id}/network/peers\`

`GET /internal/nodes/{node_id}/network/peers`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/internal/nodes/{node_id}/network/peers`
- Auth: none declared

## Path parameters

- `node_id` integer, required

## Response `200`

Peer list and self-allocation

- PeerListResponse: Response body for `GET /internal/nodes/{node_id}/network/peers`.
  - `alloc` AllocEntry, nullable: Wire-format allocation. `null` in the JSON when the node hasn't been allocated yet — workers should treat that as "single-host mode, do not bring up the overlay".
    - `bridge_address` string, required
    - `compute_cidr` string, required
    - `node_id` string, required: Stable v5 UUID derived from the database node id.
    - `overlay_network_name` string, nullable: The overlay network name this node uses (ADR 059): its override, else the cluster's. Agents that predate it ignore the field and keep `temps0`; an agent reading a control plane without it assumes `temps0`.
    - `underlay_address` string, required
  - `cluster_dns_enabled` boolean, required: Whether the cluster-DNS resolver is enabled on this control plane (`AppSettings.cluster_dns.enabled`). Workers should start their per-node resolver and write `overlay_bridge_address` only when this is `true`. Always serialized (never `skip_serializing_if`) so older and newer version skew degrades to the safe default of `false`.
  - `network` NetworkPoolEntry, required: Cluster-wide pool which every node must use. This is intentionally sent alongside the local allocation so operators and agents can detect stale or independently configured nodes before routes are changed.
    - `compute_pool_cidr` string, required
    - `subnet_prefix_len` integer, required
  - `peers` PeerEntry[], required: All other nodes with a `compute_cidr` set, excluding the caller.
    - `compute_cidr` string, required: Per-node CIDR (e.g. `"172.20.5.0/24"`).
    - `node_id` string, required: Stable v5 UUID derived from the database node id. Workers use this as the kernel-layer identifier when calling `NetworkManager::reconcile_peers`.
    - `underlay_address` string, required: Address the local node should use to reach this peer over the underlay (private VPC IP for same-DC, public IP for cross-DC).
  - `vxlan` VxlanEntry, nullable: The VXLAN network ID and UDP port every overlay of this cluster uses.
    - `port` integer, required
    - `vni` integer, required
  - `wireguard` WireguardMeshEntry, nullable: Managed WireGuard mesh state for the calling node. Absent when the mesh is off; the node then keeps its registered address as underlay.
    - `cidr` string, required
    - `hub` boolean: This node is the mesh hub (ADR 048 D4): it forwards traffic between members that cannot reach each other.
    - `listen_port` integer, required
    - `peers` WireguardMeshPeerEntry[], required
      - `address` string, required: Peer's mesh address (its overlay underlay).
      - `endpoint` string, nullable: `ip:port` to dial, or `null` when the peer has none (it dials us).
      - `name` string, required: Node name, or `control-plane`. For status output only.
      - `public_key` string, required
      - `relayed` string[]: On the hub's entry only (ADR 048 D4): the mesh addresses of the members this node reaches through the hub.
    - `self` WireguardMeshSelfEntry, nullable: This node's registered mesh identity, as the control plane stored it.
      - `address` string, required
      - `endpoint` string, nullable: `null` for a node nobody dials (ADR 055): it dials its peers, which learn its address from its handshakes.
      - `public_key` string, required

## Other responses

- `401`: Missing or invalid bearer token
- `404`: Node not found
- `500`: Internal server error

## Changes

- **2026-11-12** `e052e98bb073`: 1 info
  - added the optional property `vxlan` to the response with the `200` status
- **2026-10-26** `6882080cc5b5`: 1 info
  - added the optional property `alloc/oneOf[#/components/schemas/AllocEntry]/overlay_network_name` to the response with the `200` status
- **2026-10-26** `198448ae2ca3`: 1 warning
  - removed the optional property `alloc/oneOf[#/components/schemas/AllocEntry]/overlay_network_name` from the response with the `200` status
- **2026-10-26** `a086d94641be`: 1 info
  - added the optional property `alloc/oneOf[#/components/schemas/AllocEntry]/overlay_network_name` to the response with the `200` status
- **2026-10-26** `284b6df39007`: 1 warning
  - removed the optional property `alloc/oneOf[#/components/schemas/AllocEntry]/overlay_network_name` from the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/nodes/:node_id/network/peers/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
