Skip to content

API Overview

VPS Deployer exposes both HTML views (for the web UI) and JSON API endpoints. The JSON endpoints are used by the frontend JavaScript but can also be consumed by external tools, CI pipelines, or custom integrations.

Most API endpoints require an active session. Authenticate by logging in through the web UI first, then use the session cookie in subsequent requests.

The webhook endpoint (POST /webhook/:projectId) is the only API endpoint that does not require authentication — it uses HMAC-SHA256 verification instead.

JSON responses follow a consistent format:

{
"success": true,
"data": { ... }
}

Error responses:

{
"success": false,
"error": "Error message"
}
MethodPathAuthDescription
POST/deployYesTrigger a manual deployment
GET/deploy/:idYesGet deployment details (JSON)
POST/webhook/:projectIdNoReceive GitHub webhook
POST/email/testYesSend a test email

See Endpoints for detailed request/response schemas.

Auth endpoints (/login, /register) are rate-limited to 40 requests per minute per IP. Other endpoints are not rate-limited.