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
/api/v1/tenants/{tid}/letsencryptTurn 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
- no other properties
emailstring optionalagree_tosboolean requiredstagingboolean 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
configuredboolean requiredsourcestring optionalAllowed values:"setup""panel"directorystring optionalstagingboolean requiredemailstring optionalagreed_atstring (date-time) optionalterms_urlstring requiredLet'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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required