API referenceSections

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

POST /api/v1/tenants/{tid}/enrollment-tokens

Create a one-time agent enrollment token

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • server_name string required
  • preset string optional

    Software 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

  • token string required
  • expires_at string (date-time) required
  • panel_cert_sha256 string optional

    SHA-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_url string optional

    The 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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required