Reference

REST API

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

MethodPathWhat it does
GET/api/stateEverything you can see: workspace, servers, projects, services, recent deployments
POST/api/projectsCreate a project. Body: { "name", "services"?: [...] }
PATCH/api/projects/:idRename or describe. Body: { "name"?, "description"? }
DELETE/api/projects/:idDelete a project and everything in it
POST/api/projects/:id/servicesAdd a service (see below)
POST/api/templates/:id/deployCreate a project from a template
PATCH/api/services/:idRename or move on the canvas. Body: { "name"?, "x"?, "y"? }
PATCH/api/services/:id/settingsChange settings. Body: { "patch": {...}, "staged": true }
DELETE/api/services/:idDelete a service and its volume
POST/api/services/:id/deployDeploy now. Body: { "message"? }
POST/api/services/:id/restartRestart without rebuilding
POST/api/services/:id/stopStop the service
POST/api/services/:id/rollbackBody: { "deploymentId" }
PUT/api/services/:id/variables/:keyCreate or update. Body: { "key", "value" }
DELETE/api/services/:id/variables/:keyDelete a variable
PUT/api/services/:id/variablesReplace all. Body: { "variables": [{ "key", "value" }] }
POST/api/services/:id/domainsAdd a domain. Body: { "domain"? } (empty generates one)
DELETE/api/services/:id/domains/:domainRemove a domain
GET/api/services/:id/metrics?kind=cpu&minutes=60kind: 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"}'