Everything in the dashboard is available over HTTP.
Authentication
Create a token under Settings → API tokens. It's shown once, so copy it somewhere safe. Send it as a bearer token:
bash
curl https://YOUR-DOMAIN/api/state \
-H "Authorization: Bearer vorl_your_token_here"Requests and responses are JSON. Errors look like {"error": "Service not found"} with a matching HTTP status.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | /api/state | Everything you can see: workspace, servers, projects, services, recent deployments |
POST | /api/projects | Create a project. Body: { "name", "services"?: [...] } |
PATCH | /api/projects/:id | Rename or describe. Body: { "name"?, "description"? } |
DELETE | /api/projects/:id | Delete a project and everything in it |
POST | /api/projects/:id/services | Add a service (see below) |
POST | /api/templates/:id/deploy | Create a project from a template |
PATCH | /api/services/:id | Rename or move on the canvas. Body: { "name"?, "x"?, "y"? } |
PATCH | /api/services/:id/settings | Change settings. Body: { "patch": {...}, "staged": true } |
DELETE | /api/services/:id | Delete a service and its volume |
POST | /api/services/:id/deploy | Deploy now. Body: { "message"? } |
POST | /api/services/:id/restart | Restart without rebuilding |
POST | /api/services/:id/stop | Stop the service |
POST | /api/services/:id/rollback | Body: { "deploymentId" } |
PUT | /api/services/:id/variables/:key | Create or update. Body: { "key", "value" } |
DELETE | /api/services/:id/variables/:key | Delete a variable |
PUT | /api/services/:id/variables | Replace all. Body: { "variables": [{ "key", "value" }] } |
POST | /api/services/:id/domains | Add a domain. Body: { "domain"? } (empty generates one) |
DELETE | /api/services/:id/domains/:domain | Remove a domain |
GET | /api/services/:id/metrics?kind=cpu&minutes=60 | kind: cpu, memory, network, requests |
Service body
json
{ "kind": "github", "repo": "owner/repo", "runtime": "python" }
{ "kind": "database", "db": "postgres" }
{ "kind": "docker", "image": "ghcr.io/user/app:latest" }
{ "kind": "empty", "name": "worker" }runtime is one of node, python, bun, static, nextjs. db is one of postgres, mysql, redis, mongodb.
Example: deploy from GitHub Actions
yaml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: |
curl -fsS -X POST "https://YOUR-DOMAIN/api/services/${{ secrets.SERVICE_ID }}/deploy" \
-H "Authorization: Bearer ${{ secrets.VORL_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"message":"Deploy from CI"}'