Skip to content

Create a one-time join token for an agent

POST
/api/v1/join-tokens
curl --request POST \
--url http://localhost:8080/api/v1/join-tokens \
--header 'Content-Type: application/json' \
--header 'X-Brokerium-Request: 1' \
--cookie brokerium_session=<brokerium_session> \
--data '{ "nodeName": "example", "clusterId": "example", "ttlMinutes": 60 }'

Role: operator. Returns the install command for the host.

X-Brokerium-Request
required
string
Allowed value: 1

Required on every non-GET request.

Media typeapplication/json
object
nodeName
required
string
/^[a-z0-9][a-z0-9.-]*$/
clusterId
string | null
ttlMinutes
integer
default: 60 >= 1 <= 10080

Token and install command.

Media typeapplication/json
object
token
required
string
expiresAt
required
string format: date-time
command
required
string

Example generated

{
"token": "example",
"expiresAt": "2026-04-15T12:00:00Z",
"command": "example"
}

Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.