---
title: "Generate a new join token for multi-node cluster registration"
method: POST
path: "/settings/join-token/generate"
tags: ["Settings"]
---

# Generate a new join token for multi-node cluster registration

`POST /settings/join-token/generate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/join-token/generate`
- Auth: HTTP bearer

Creates a random 32-byte hex token, stores the SHA-256 hash in settings,
and returns the plaintext exactly once. If a token already exists, it is replaced.

## Response `200`

Join token generated

- GenerateJoinTokenResponse: Response returned when a join token is generated (plaintext shown once)
  - `message` string, required
  - `token` string, required: The plaintext join token — shown only once, save it now

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/join-token/generate/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)
