Create the first admin with the one-time setup token
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/bootstrapCreate the first admin with the one-time setup token
No authentication.
Request body
required
Content type: application/json
- no other properties
tokenstring requiredtenant_namestring requiredemailstring (email) requiredpasswordstring required- min length 12
- max length 128
admin_namestring optionalOptional (ADR 0057)
- max length 80
notify_emailstring optionalWhere server notifications go (the wizard sends the admin's email by default). Becomes an email alert channel that waits until SMTP is set up; without it no channel is made
public_urlstring optionalhttps://host[:port], used when the service has no -public-url
languagestring optionalAllowed values:"en""vi"sign_inboolean optionalAnswer 200 with a session (cookie set) instead of 204
local_serverobject optionalConnect the panel's own machine as a server, installing the ticked part of the recommended set (ADR 0114). Only when setup-status offers local_server
- no other properties
itemsarray<string> optional
letsencryptobject optionalTurn on Let's Encrypt (production) for site, mail host and panel certificates. agree_tos must be true: the administrator accepts its Subscriber Agreement (ADR 0012, E1); refused with ACME_TERMS_NOT_ACCEPTED before anything is created
- no other properties
emailstring optionalContact of the Let's Encrypt account (optional)
agree_tosboolean requiredstagingboolean optionalLet's Encrypt's staging CA instead (test certificates)
Example
{
"token": "string",
"tenant_name": "string",
"email": "user@example.com",
"password": "xxxxxxxxxxxx",
"admin_name": "string",
"notify_email": "string",
"public_url": "string",
"language": "en",
"sign_in": true,
"local_server": {
"items": [
"string"
]
},
"letsencrypt": {
"email": "string",
"agree_tos": true,
"staging": true
}
}Responses
200 Done and signed in (sign_in)
Content type: application/json
tenant_idstring requiredcsrf_tokenstring requiredmfastring requirednotify_emailstring requiredlocal_serverstring optionalrunning when connecting this machine started, else the error code (the Servers page offers it again)
letsencryptstring optionalon when certificates were turned on, else the error code (the Security page offers it again)
panel_certificateobject optionalWith certificates on, the panel's address becomes the name of the panel's own certificate and one is requested at once (D25). state: issuing (follow it at GET panel-certificate), active, kept (the provider's own name or upload stays), PANEL_ADDRESS_NOT_A_NAME (an IP address: the self-signed certificate stays), or an error code. A failed issue keeps the self-signed certificate and is retried; Security → Panel certificate says why
hostnamestring optionalstatestring required
Example
{
"tenant_id": "string",
"csrf_token": "string",
"mfa": "string",
"notify_email": "string",
"local_server": "string",
"letsencrypt": "string",
"panel_certificate": {
"hostname": "string",
"state": "string"
}
}204 Done
default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required