API referenceSections

A one-time enrollment token for the panel's own machine, for `zopanel-setup install -roles agent` there

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/local/enrollment-tokens

A one-time enrollment token for the panel's own machine, for zopanel-setup install -roles agent there (ADR 0114). Same rules as recovery-links: loopback, no proxy headers, the X-Zopanel-Recovery secret; anything else is 404. Made for the provider's first administrator; 409 PANEL_NOT_SET_UP before the first admin exists

No authentication.

Parameters

NameInTypeRequiredDescription
X-Zopanel-Recoveryheaderstringrequired

Request body

required

Content type: application/json

object
  • no other properties
  • server_name string required
  • preset string optional

    recommended, none, or recommended:<id>,<id>

Example
{
  "server_name": "string",
  "preset": "string"
}

Responses

201 Token

Content type: application/json

object
  • token string required
  • expires_at string (date-time) required
  • panel_cert_sha256 string optional
Example
{
  "token": "string",
  "expires_at": "2026-01-01T00:00:00Z",
  "panel_cert_sha256": "string"
}

default Error

Content type: application/json

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