---
title: "Mint a short-lived, single-use node enrollment token."
method: POST
path: "/settings/enrollment-tokens"
tags: ["Settings"]
---

# Mint a short-lived, single-use node enrollment token.

`POST /settings/enrollment-tokens`

## Request

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

## Request body

- MintEnrollmentTokenRequest
  - `bound_node_name` string, nullable: Optional: restrict the token to register one specific node name.
  - `max_uses` integer, nullable: Maximum registrations this token may authorize (default 1).
  - `ttl_secs` integer, nullable: Time-to-live in seconds (default 3600 = 1h).

## Response `200`

Enrollment token minted

- MintEnrollmentTokenResponse
  - `ca_fingerprint` string, nullable: SHA-256 fingerprint of the cluster CA. Token issuance initializes the CA when needed, so every newly minted token carries a trust pin.
  - `expires_at` string, required
  - `id` integer, required
  - `max_uses` integer, required
  - `message` string, required
  - `token` string, required: The plaintext enrollment token — shown only once, save it now.

## Other responses

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

## Changes

- **2026-07-01** `d83dcb738585`: 1 info
  - endpoint added

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