API referenceSections

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

POST /api/v1/bootstrap

Create the first admin with the one-time setup token

No authentication.

Request body

required

Content type: application/json

object
  • no other properties
  • token string required
  • tenant_name string required
  • email string (email) required
  • password string required
    • min length 12
    • max length 128
  • admin_name string optional

    Optional (ADR 0057)

    • max length 80
  • notify_email string optional

    Where 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_url string optional

    https://host[:port], used when the service has no -public-url

  • language string optional
    Allowed values: "en" "vi"
  • sign_in boolean optional

    Answer 200 with a session (cookie set) instead of 204

  • local_server object optional

    Connect 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
    • items array<string> optional
  • letsencrypt object optional

    Turn 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
    • email string optional

      Contact of the Let's Encrypt account (optional)

    • agree_tos boolean required
    • staging boolean optional

      Let'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

object
  • tenant_id string required
  • csrf_token string required
  • mfa string required
  • notify_email string required
  • local_server string optional

    running when connecting this machine started, else the error code (the Servers page offers it again)

  • letsencrypt string optional

    on when certificates were turned on, else the error code (the Security page offers it again)

  • panel_certificate object optional

    With 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

    • hostname string optional
    • state string 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

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