EndpointsCreate a join token

clusters

Create a join token

Hosted Clusters: a token and the command that joins a server as a node. The command is returned only here.

POST/clusters/{id}/join_tokens
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

idstringrequired

Cluster ID

Required string length: 3 - 54

Body

application/json
ttl_secondsintegerrequired

Lifetime of the token in seconds. A token is for one server: 15 minutes after its first use it expires, whatever is left of this lifetime.

Required range: 60 <= x <= 86400

Response

application/json

Join token and its join command

tokenobjectrequired
child attributes
token.idstringrequired

Pattern: ^[a-z0-9]{6}$

token.stateenum<string>required

Available options: active, revoked, expired

token.expires_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

token.created_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

token.used_atinteger | nullrequired

When the token was first used to join a server; it then expires 15 minutes later (expires_at). Null while it is unused, and for the tokens of a node pool. OUTPUT_ONLY. Unix timestamp (seconds)

Required range: x >= 0

commandstringrequired

Sensitive short join.sh command with the Cluster ID and Kubernetes bootstrap token. Returned only here.

Required string length: 1 - 512

expires_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0