Create a one-time agent enrollment token
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/enrollment-tokensCreate a one-time agent enrollment token
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
server_namestring requiredpresetstring optionalSoftware the server installs by itself once it reports (ADR 0049)
Allowed values:"""none""recommended"
Example
{
"server_name": "string",
"preset": ""
}Responses
201 One-time token
Content type: application/json
tokenstring requiredexpires_atstring (date-time) requiredpanel_cert_sha256string optionalSHA-256 of the certificate the panel serves at panel_url (its own for its name, ADR 0064, else the installer's), for zopanel-setup -ca-sha256 and the MSI's CA_SHA256 (ADR 0045, 0079); absent when the panel serves without its own certificate
panel_urlstring optionalThe address the panel was given (flag or setup wizard), for the join command's -server / PANEL_URL; when no certificate the panel serves names it (no certificate of its own yet), a public address the installer's certificate names instead (R15-1); absent when none was given, and then the browser's address is used
Example
{
"token": "string",
"expires_at": "2026-01-01T00:00:00Z",
"panel_cert_sha256": "string",
"panel_url": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required