API referenceSections

Turn on Let's Encrypt (or switch between production and staging) with the administrator's acceptance of its Subscriber Agreement; audited (acme.enable)

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

PUT /api/v1/tenants/{tid}/letsencrypt

Turn on Let's Encrypt (or switch between production and staging) with the administrator's acceptance of its Subscriber Agreement; audited (acme.enable). ACME_SET_BY_SETUP when setup.json chose the CA. Not for API keys

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
  • no other properties
  • email string optional
  • agree_tos boolean required
  • staging boolean optional
Example
{
  "email": "string",
  "agree_tos": true,
  "staging": true
}

Responses

200 Turned on

Content type: application/json

The panel's certificate authority (ADR 0012, E1). source: setup when setup.json's -acme-directory chose it (zopanel-setup letsencrypt changes it), panel when an administrator accepted Let's Encrypt's terms in the panel or the MSI did

  • configured boolean required
  • source string optional
    Allowed values: "setup" "panel"
  • directory string optional
  • staging boolean required
  • email string optional
  • agreed_at string (date-time) optional
  • terms_url string required

    Let's Encrypt's current Subscriber Agreement, from its directory (the repository page when it cannot be asked)

Example
{
  "configured": true,
  "source": "setup",
  "directory": "string",
  "staging": true,
  "email": "string",
  "agreed_at": "2026-01-01T00:00:00Z",
  "terms_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