Feedra VPS API
Manage your Feedra VPS servers and the apps on them from scripts, CI or your own tools.
Base URL: https://api.feedra.ai/v1 Auth: Authorization: Bearer fvps_… — create keys on the Servers screen (Management API). A key can be limited to some servers and made read-only. Keys can't add funds, reveal root passwords, or confirm chat actions; those need you, signed in.
Errors come back as {"error": "plain-English reason"} with a matching HTTP status. 402 means the VPS balance is too low.
Catalog and prices
GET /vps/catalog?region=us-central | Plans (with your price per hour and month), locations, operating systems, starter apps |
|---|---|
POST /vps/quote {region, type, image, backups} | Exact price for a server |
GET /vps/wallet | Balance, spend per hour and month, recent charges |
Servers
GET /vps/servers | Your servers | ||
|---|---|---|---|
POST /vps/servers {label, region, type, image?, backups?, sshKeys?: ["ssh-ed25519 …"]} | Create one. The first hour is charged right away | ||
GET /vps/servers/:id | One server, with live status | ||
POST /vps/servers/:id/power `{action: "boot" \ | "reboot" \ | "shutdown"}` | Power |
POST /vps/servers/:id/resize {type} | Move to another plan (restarts it) | ||
POST /vps/servers/:id/rebuild {image, confirm: true} | Erase and reinstall | ||
PUT /vps/servers/:id/backups {enabled} | Daily backups on/off | ||
GET /vps/servers/:id/backups | Backups you can restore | ||
POST /vps/servers/:id/backups/:backupId/restore {confirm: true} | Restore one (overwrites the server) | ||
GET /vps/servers/:id/firewall | Open ports | ||
PUT /vps/servers/:id/firewall {open: [{protocol: "TCP", ports: "22", from?: ["1.2.3.4/32"]}]} | Set open ports; everything else is blocked | ||
DELETE /vps/servers/:id | Delete it and everything on it; billing stops |
Apps
Every app runs in Docker behind Caddy, with HTTPS at https://<app>.<ip-with-dashes>.sslip.io until you give it your own domain.
GET /vps/servers/:id/apps | Apps on a server | ||
|---|---|---|---|
POST /vps/servers/:id/apps | Deploy a new app (body below). Returns right away with status: "deploying" | ||
GET /vps/apps/:id | Status, versions and the deploy log. Poll until running or failed | ||
POST /vps/apps/:id/deploy {bundle?} | Deploy again (pulls Git again, or sends new files) | ||
GET /vps/apps/:id/logs?lines=200 | The app's output | ||
POST /vps/apps/:id/power `{action: "restart" \ | "stop" \ | "start"}` | |
GET /vps/apps/:id/env · PUT {env: "NAME=value\n…"} | Settings (environment variables). Keys see names only | ||
PUT /vps/apps/:id/domain {domain} | Serve at your domain; the reply says which DNS record to add | ||
POST /vps/apps/:id/rollback {version?} | Back to the previous (or a given) version | ||
DELETE /vps/apps/:id?keepData=1 | Remove the app (and its data unless keepData) |
New app body
{ "name": "shop", // lowercase letters, numbers, dashes
"domain": "shop.example.com", // optional
"env": "NODE_ENV=production\nAPI_KEY=…", // optional
"source": { "kind": "template", "template": "wordpress" } } // wordpress | ghost | n8n | uptime-kuma | hello-static
// or { "kind": "git", "repo": "https://github.com/you/app", "branch": "main", "token": "ghp_… (private repos)", "port": 3000 }
// or { "kind": "image", "image": "ghcr.io/you/app:latest", "port": 8080, "volume": "/data" }
// or { "kind": "upload", "port": 3000 } plus "bundle": "<base64 of a .tar.gz of your project>"
Feedra builds Git and uploaded projects automatically: a compose.yml or Dockerfile if present, otherwise Node (npm start, port 3000), Python (Procfile, Django, app.py, port 8000) or a static site (index.html, dist/, public/, build/).
Deploy from GitHub Actions
- name: Deploy to Feedra VPS
run: curl -fsS -X POST https://api.feedra.ai/v1/vps/apps/${{ secrets.FEEDRA_APP_ID }}/deploy -H "Authorization: Bearer ${{ secrets.FEEDRA_VPS_KEY }}"
Billing
Servers are charged by the hour, in advance, from your prepaid VPS balance, and never more than the plan's monthly price in a calendar month. A server that's off still costs money until it's deleted. When the balance runs out, servers are paused; adding funds turns them back on. Servers left unpaid for 7 days are deleted.