Skip to main content
Paths are relative to the panel origin, for example http://127.0.0.1:3000. Unless marked otherwise, every endpoint needs the aeros_session cookie. See API overview for authentication and errors.

Health

GET /api/health

No authentication.
200
uptime is the panel process uptime in seconds.

Auth

GET /api/auth/status

No authentication. Tells the frontend whether to show the login or setup screen.
200
user is null when not authenticated.

POST /api/auth/setup

No authentication. Creates the first admin and logs in. Only works while no user exists.
string
default:"admin"
3 to 32 letters, digits, _, or -.
string
required
At least 10 characters.
Returns 201 with {"authenticated": true, "user": {"id": 1, "username": "admin"}} and sets the session cookie. Returns 409 if an admin already exists.

POST /api/auth/login

No authentication. Rate limited to 10 attempts per IP per 15 minutes.
string
required
string
required
Returns 200 with {"authenticated": true, "user": {...}} and sets the session cookie. 401 for wrong credentials, 429 when rate limited.

POST /api/auth/logout

Deletes the current session and clears the cookie. Returns {"success": true}.

POST /api/auth/password

Changes the password of the logged-in user, deletes all of their sessions, and sets a new session cookie.
string
required
string
required
At least 10 characters.
Returns {"success": true}. 401 if currentPassword is wrong.

System

GET /api/system/metrics

Live host metrics, cached for 1 second.
200
  • cpu.usage is a percentage over the interval since the previous call.
  • Bytes are reported for memory and storage (root filesystem).
  • thermal.temperature is in °C from thermal_zone0, or null.
  • battery.status is the kernel status in upper case, AC_POWER with percentage: 100 when there is no battery, or NOT_FOUND when /sys/class/power_supply is unreadable.

GET /api/system/info

Host facts and remote access detection. Host facts and remote access probes are cached for 30 seconds.
200
ipv4 and mac belong to the first non-internal IPv4 interface, or UNKNOWN.

Templates

GET /api/templates

Returns the five project templates with their defaults: id (node, python, static, java, custom), name, shortLabel, description, defaultExecStart, defaultBuildCmd, defaultMemoryMax, defaultCpuQuota, defaultUser, and hint. See Services and templates.

POST /api/templates/preview

Validates unit fields and returns the generated unit without writing anything.
string
default:"My Service"
string
default:"my-service"
string
default:"node"
node, python, static, java, or custom.
string
Defaults to /opt/<service_name>.
string
Defaults to the template’s command.
string
string
For example 256M.
string
For example 50%.
200
Validation errors return 400.

Projects

GET /api/projects

Lists projects with live status. Each item:

POST /api/projects

Creates a project and, by default, writes and loads its unit.
string
required
string
required
Must pass assertManageableServiceName.
string
default:"custom"
string
https://, http://, ssh://, or git@host:path.
string
default:"main"
string
string
string
Defaults to the template’s build command. Send an empty string for none.
string
string
string
boolean
default:"true"
Set to false to only register the project.
201
unit.warning is set when the unit could not be written, for example on a non-Linux host, or when the failure alert drop-in could not be installed.

DELETE /api/projects/:id

Deletes the project, its failure alert drop-in, and its Caddy route.
string
Set to 1 to also stop, disable, and delete the unit file.
Returns {"success": true} or 404.

POST /api/projects/:id/start, /stop, /restart

Run systemctl start|stop|restart on the project’s service. Return {"success": true}.

POST /api/projects/:id/autostart

boolean
required
true runs systemctl enable, false runs systemctl disable.
Returns {"success": true}.

POST /api/projects/:id/deploy

Starts the deploy pipeline in the background.
202
409 if a deploy or rollback is already running for this service.

POST /api/projects/:id/rollback

Starts a rollback to previous_commit in the background.
string
The SHA you expect to roll back to. If sent and it differs from the stored previous_commit, the request fails with 409.
Returns 202 like deploy. 409 if a deploy is running or no previous commit is stored.

Webhook configuration

POST /api/projects/:id/webhook

Generates a new 32-byte webhook secret, replacing any previous one. The response has Cache-Control: no-store.
200

DELETE /api/projects/:id/webhook

Removes the secret, which disables the webhook. Returns {"enabled": false}.

Environment file

GET /api/projects/:id/env

200
Returns the contents saved by the panel, not the file on disk. Cache-Control: no-store.

POST /api/projects/:id/env

string
required
The full file contents.
Saves the text and writes <work_dir>/.env with mode 0600 if the directory exists. Returns {"success": true}. 400 if the working directory fails validateWorkDir. See .env editor.

Caddy

GET /api/caddy/status

200
routes lists the aeros-*.caddy snippets in /etc/caddy/conf.d/, and is empty when Caddy is not active.

PUT /api/projects/:id/domain

string
required
A lowercase FQDN.
number
required
1 to 65535.
Writes the snippet and reloads Caddy. Returns {"success": true, "domain": "app.example.com", "port": 3001}. 400 for an invalid domain or port, or when Caddy is not active.

DELETE /api/projects/:id/domain

Deletes the snippet and reloads Caddy if it is active. Returns {"success": true}.

Backups

GET /api/backups

200
status is the timer’s systemctl is-active result, active or inactive. created_at is in milliseconds since the epoch.

POST /api/backups

string
required
1 to 40 characters: lowercase letters, digits, -, _.
string[]
required
1 to 20 absolute paths.
string
default:"daily"
hourly, daily, weekly, monthly, or HH:MM.
boolean
default:"false"
Enable and start the timer right away.
201
warning is set when the units could not be written.

POST /api/backups/:id/toggle

boolean
required
Runs systemctl enable --now or disable --now on the timer. Returns {"success": true, "enabled": true}.

POST /api/backups/:id/run

Runs the backup service once with systemctl start. Returns {"success": true} when it finishes.

DELETE /api/backups/:id

Disables the timer and deletes both units. Archives are kept. Returns {"success": true}.

Settings

GET /api/settings/public-status

200

PUT /api/settings/public-status

boolean
string
An empty string removes the token.
Fields not sent are left unchanged. Returns the updated settings. See Public status.

GET /api/settings/alerts

200
supported is false on hosts without Linux and systemd. configured is true when /etc/aeros-panel/alerts.env exists. The webhook URL is never returned.

PUT /api/settings/alerts

boolean
required
string
required
discord, telegram, ntfy, or json.
string
Required the first time, or when changing provider. Omit it to keep the saved URL.
Writes the alert files and drop-ins, rolling back to the previous configuration if anything fails. Returns {"enabled": true, "provider": "discord", "supported": true, "configured": true}. 409 on unsupported hosts. See Failure alerts.

POST /api/settings/alerts/test

Sends a test alert to the saved webhook. Returns {"ok": true}, 409 if no URL is saved, or 502 if the webhook could not be reached or did not answer with 2xx.