API referenceSections

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-links

Make 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

NameInTypeRequiredDescription
X-Zopanel-Recoveryheaderstringrequired

Request body

required

Content type: application/json

object
  • no other properties
  • email string optional

    A provider administrator; empty picks the oldest

  • reset_mfa boolean optional

    Remove the authenticator app and passkeys when the link is used (locked-out admin)

  • clear_allow_list boolean optional

    Also 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
  • token string required
  • email string required
  • expires_at string (date-time) required
  • reset_mfa boolean required
  • public_url string required
  • allow_list_cleared boolean 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

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