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.
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.
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.
Returns {"success": true}. 401 if currentPassword is wrong.
System
GET /api/system/metrics
Live host metrics, cached for 1 second.
200
cpu.usageis a percentage over the interval since the previous call.- Bytes are reported for
memoryandstorage(root filesystem). thermal.temperatureis in °C fromthermal_zone0, ornull.battery.statusis the kernel status in upper case,AC_POWERwithpercentage: 100when there is no battery, orNOT_FOUNDwhen/sys/class/power_supplyis 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.
200
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.
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.
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
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.
The SHA you expect to roll back to. If sent and it differs from the stored
previous_commit, the request fails with 409.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
Cache-Control: no-store.
POST /api/projects/:id/env
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
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
201
warning is set when the units could not be written.
POST /api/backups/:id/toggle
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
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
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.