Skip to main content
The panel’s frontend uses the same REST API documented here. All routes live under /api on the panel’s port (default 3000). Request and response bodies are JSON.

Authentication

Most endpoints need a session cookie named aeros_session. Get one by logging in:
Then send the cookie with each request:
A missing, expired, or unknown session returns:
401
Sessions last 7 days. See Security for how they are stored.

Endpoints without a session

Mutations and Origin

Every POST, PUT, DELETE, and PATCH under /api passes through the same-origin check, including the unauthenticated ones. Requests from scripts that send no Origin header, like curl, pass the check. Browser requests from another origin get 403 unless that origin is listed in CORS_ORIGIN. See Security.

Errors

Errors use one shape:

Rate limits

Only POST /api/auth/login is rate limited: 10 attempts per client IP per 15 minutes. Other endpoints have no rate limit, but they all run behind authentication or the checks listed above.
429

Long-running actions

POST /api/projects/:id/deploy and POST /api/projects/:id/rollback return 202 right away. Progress is streamed over the WebSocket for that service, with lines prefixed [DEPLOY] or [ROLLBACK]. GET /api/projects reports deploying and deployment_action while one runs.

WebSocket log stream

Use wss:// when the panel is served over HTTPS. The connection needs:
  • An Origin header that matches the panel’s host, or one listed in CORS_ORIGIN. Browsers send it automatically.
  • The aeros_session cookie.
  • A service query parameter matching ^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$.
On connect, the server spawns journalctl -u <service> -f -n 100 and sends its output as text frames. It also sends deploy and rollback lines for that service, plus these system messages: The client sends nothing. Closing the socket kills the journalctl process.
Browser