---
title: "`PUT /internal/nodes/{node_id}/network/wireguard/handshakes`"
method: PUT
path: "/internal/nodes/{node_id}/network/wireguard/handshakes"
tags: ["Nodes"]
---

# \`PUT /internal/nodes/{node_id}/network/wireguard/handshakes\`

`PUT /internal/nodes/{node_id}/network/wireguard/handshakes`

## 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/wireguard/handshakes`
- Auth: none declared

Called by the node's own agent after each mesh sync. The control plane
routes pairs whose direct link never handshakes through the hub (ADR 048
D4).

## Path parameters

- `node_id` integer, required

## Request body

- ReportWireguardHandshakesRequest: Body of `PUT /internal/nodes/{node_id}/network/wireguard/handshakes`: when this node last completed a WireGuard handshake with each peer. Peers it never handshook with are left out.
  - `peers` WireguardHandshakeReport[], required
    - `public_key` string, required
    - `seconds_since_handshake` integer, required: Seconds since the last completed handshake, on the node's clock.

## Response `204`

Report recorded

## Other responses

- `400`: Too many peers
- `401`: Missing or invalid bearer token
- `500`: Internal server error

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-10-04** `0af240880dca`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/internal/nodes/:node_id/network/wireguard/handshakes/put.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)
