---
title: "Register a new worker node or reconnect an existing one"
method: POST
path: "/internal/nodes/register"
tags: ["Nodes"]
---

# Register a new worker node or reconnect an existing one

`POST /internal/nodes/register`

## Request

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

## Request body

- RegisterNodeApiRequest
  - `address` string, required: Node's reachable address (e.g., "10.100.0.2" or "192.168.1.50")
  - `architecture` string, nullable: Container platform of this node's Docker daemon (`linux/amd64`, `linux/arm64`). Optional: agents older than multi-arch support omit it and the value is learned from the first heartbeat instead.
  - `csr_pem` string, nullable: Node-generated certificate signing request (PEM) for multi-node mTLS (ADR-020 WS-2.1). When present, the control plane signs it with the cluster CA and returns the leaf + CA cert. Optional — token-only nodes (legacy / edge) still register without one.
  - `edge_public_key` string, nullable: X25519 public key for ECIES certificate encryption (base64-encoded, edge nodes only)
  - `join_token` string, nullable: Join token to authorize this registration (must match the token generated in Settings)
  - `labels` unknown
  - `name` string, required: Unique name for this node
  - `occupied_ranges` OccupiedRangeReport[], nullable: IPv4 ranges this machine already uses (ADR 056), so its overlay allocation avoids them. Absent from older CLIs.
    - `cidr` string, required: IPv4 network, e.g. `172.20.0.0/16`.
    - `name` string, required: Device name for a route, network name for a Docker network.
    - `source` string, required: `route` (a host route) or `docker` (a Docker network's subnet).
  - `overlay_network_name` string, nullable: The overlay network name this node uses instead of the cluster's (ADR 059). `temps join` sends one when the host already has a network of the cluster's name it does not own. Absent keeps the node's current name; older CLIs never send it.
  - `prior_token` string, nullable: The node's *current* token, supplied to prove possession when re-registering (changing the identity of) a node that already exists. Optional; only needed to rebind a still-live node. (ADR-020 WS-1.2.)
  - `private_address` string, required: Private/WireGuard address for inter-node communication
  - `public_endpoint` string, nullable: Public endpoint for WireGuard (e.g., "203.0.113.1:51820")
  - `role` string, nullable: Node role (default: "worker")
  - `token` string, required: Registration token (plaintext, will be hashed before storage)
  - `wg_public_key` string, nullable: WireGuard public key

## Response `200`

Node reconnected successfully

- RegisterNodeResponse
  - `ca_cert_pem` string, nullable: The cluster CA certificate (PEM) the node pins as its trust root. Present only when a `csr_pem` was supplied. (ADR-020 WS-2.1.)
  - `cert_pem` string, nullable: The signed per-node leaf certificate (PEM) the agent serves as its TLS server cert. Present only when a `csr_pem` was supplied. (ADR-020 WS-2.1.)
  - `id` integer, required
  - `message` string, required
  - `mtls_required` boolean, required: Whether this node must serve mTLS and reject plaintext agent traffic.
  - `name` string, required
  - `status` string, required

## Other responses

- `201`: Node registered successfully
- `400`: Validation error
- `500`: Internal server error

## Changes

- **2026-10-26** `6882080cc5b5`: 1 info
  - added the new optional request property `overlay_network_name`
- **2026-10-26** `198448ae2ca3`: 1 warning
  - removed the request property `overlay_network_name`
- **2026-10-26** `a086d94641be`: 1 info
  - added the new optional request property `overlay_network_name`
- **2026-10-26** `284b6df39007`: 1 warning
  - removed the request property `overlay_network_name`
- **2026-10-26** `07be4b9cdd45`: 1 info
  - added the new optional request property `overlay_network_name`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/nodes/register/post.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)
