/api on the panel’s port (default 3000). Request and response bodies are JSON.
Authentication
Most endpoints need a session cookie namedaeros_session. Get one by logging in:
401
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
OnlyPOST /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
wss:// when the panel is served over HTTPS. The connection needs:
- An
Originheader that matches the panel’s host, or one listed inCORS_ORIGIN. Browsers send it automatically. - The
aeros_sessioncookie. - A
servicequery parameter matching^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$.
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