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-tokensA 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Zopanel-Recovery | header | string | required |
Request body
required
Content type: application/json
object
- no other properties
server_namestring requiredpresetstring optionalrecommended, none, or recommended:<id>,<id>
Example
{
"server_name": "string",
"preset": "string"
}Responses
201 Token
Content type: application/json
object
tokenstring requiredexpires_atstring (date-time) requiredpanel_cert_sha256string optional
Example
{
"token": "string",
"expires_at": "2026-01-01T00:00:00Z",
"panel_cert_sha256": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required