Make a recovery link
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/local/recovery-linksMake a recovery link (ADR 0057). Only from loopback, without proxy headers, and with the X-Zopanel-Recovery secret the service writes to its Administrators-only data folder; anything else is 404
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
emailstring optionalA provider administrator; empty picks the oldest
reset_mfaboolean optionalRemove the authenticator app and passkeys when the link is used (locked-out admin)
clear_allow_listboolean optionalAlso empty the administrators' allow-list (ADR 0065)
Example
{
"email": "string",
"reset_mfa": true,
"clear_allow_list": true
}Responses
201 The link's token, valid 10 minutes, once
Content type: application/json
object
tokenstring requiredemailstring requiredexpires_atstring (date-time) requiredreset_mfaboolean requiredpublic_urlstring requiredallow_list_clearedboolean optional
Example
{
"token": "string",
"email": "string",
"expires_at": "2026-01-01T00:00:00Z",
"reset_mfa": true,
"public_url": "string",
"allow_list_cleared": true
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required