API Documentation

SumiCloud API Docs - REST API for KVM VPS Management | Automate Your Servers
API Documentation

Your whole VPS fleet,
one REST call away.

The SumiCloud API is the same control panel you click, exposed as plain JSON. Provision a server, take a snapshot, resize a plan, read live metrics — all with a Bearer key, no OAuth dance, no SDK lock-in. If you can curl, you can automate us.

API v1 · Last updated: November 20, 2026
smedian time to a running server
req/minrate limit per API key
regionsprovisionable from the API
sumicloud — api
$ curl -X POST https://api.sumicloud.casa/v1/servers \
-H "Authorization: Bearer sk_live_..." \
-d '{"plan":"small","region":"sg-sin"}'
# provisioning on Singapore node...
✓ server vps-8f2a is running in 47s
ip: 103.151.42.7 · os: ubuntu-24.04 · cpu: 4 vCPU · ram: 8 GB
$
01

Quick Start

Three steps from zero to a running server. No account gymnastics, no waiting for an approval email — the key you create in the panel works immediately.

01

Create an API key

Panel → Settings → API. You get a sk_live_ key scoped to your account. Copy it once; it is not shown again.

02

Provision a server

One POST to /v1/servers with a plan and a region. The response carries the server ID and a status you can poll.

03

Connect

When the status flips to running, the IP and root password are in the response. SSH in and go.

Every example on this page uses the live base URL. Swap in your own key and they run as-is — nothing here is a sketch.

02

Authentication

One key, one header, no token refresh. The key is a bearer secret — treat it like a password, because it is one.

bash
$ curl https://api.sumicloud.casa/v1/servers \
  -H "Authorization: Bearer sk_live_9f2c81d4e7a6b3c5"
  • Live keys start with sk_live_ and touch real servers. Test keys start with sk_test_ and run against a sandbox that never provisions hardware.
  • Rotate freely. Old keys keep working for 24 hours after a new one is issued, so a rotation never drops an automation mid-run.
  • Revoke instantly. A revoked key stops working on the next request, not the next hour.
  • Scope per key. You can issue a read-only key for a monitoring script and a full key for your deploy pipeline, so a leaked dashboard token cannot reboot a production box.

If a key ends up in a public repository, revoke it before you worry about anything else. A leaked key is a live server, not a theoretical one.

03

Base URL & Format

Everything is JSON over HTTPS. Requests and responses share one shape, so once you have read one response you have read them all.

ItemValue
Base URLhttps://api.sumicloud.casa/v1
Content typeapplication/json on both sides
AuthAuthorization: Bearer <key>
TimestampsISO 8601, UTC, e.g. 2026-11-20T09:41:00Z
Pagination?page=1&per_page=50, capped at 100 per page
IdempotencySend Idempotency-Key on any POST to retry safely
response envelope
{
  "data": { "id": "vps-8f2a", "status": "running" },
  "meta": { "request_id": "req_01J9XK...", "latency_ms": 42 }
}

Every response carries a request_id. If something goes wrong and you need a human to look at it, that ID is the fastest way to the right log — quote it and the answer comes back in hours, not days.

04

Servers

The core of the API. Create, read, power, resize, and destroy KVM servers. The same operations the panel performs, with the same guarantees.

POST/v1/serversprovision a new server
GET/v1/serverslist all servers
GET/v1/servers/{id}server details
POST/v1/servers/{id}/rebootreboot the server
POST/v1/servers/{id}/powerstart or stop
PUT/v1/servers/{id}/resizechange plan
DELETE/v1/servers/{id}destroy the server

Provision a server

bash
$ curl -X POST https://api.sumicloud.casa/v1/servers \
  -H "Authorization: Bearer $SUMICLOUD_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan":"small","region":"sg-sin","os":"ubuntu-24.04"}'
python
import requests

r = requests.post(
    "https://api.sumicloud.casa/v1/servers",
    headers={"Authorization": f"Bearer {KEY}"},
    json={"plan": "small", "region": "sg-sin", "os": "ubuntu-24.04"},
)
server = r.json()["data"]
print(server["ip"], server["status"])
javascript
const r = await fetch("https://api.sumicloud.casa/v1/servers", {
  method: "POST",
  headers: { Authorization: `Bearer ${KEY}` },
  body: JSON.stringify({ plan: "small", region: "sg-sin", os: "ubuntu-24.04" }),
});
const { data: server } = await r.json();
console.log(server.ip, server.status);

Request body

FieldTypeNotes
planstringmicro, small, medium, large — see Section 11
regionstringregion code, e.g. sg-sin, de-fra, us-ny
osstringimage slug, e.g. ubuntu-24.04, debian-12, rocky-9
hostnamestringoptional, defaults to the server ID
ssh_keysstring[]optional, public keys to install on first boot

Provisioning is asynchronous. The POST returns immediately with status provisioning; poll GET /v1/servers/{id} or subscribe to webhooks until it is running. Median time to running is under a minute.

05

Snapshots & Backups

A snapshot is a point-in-time copy of a server's disk. Backups are snapshots we keep for you on a schedule. Both are one call away, and both are the reason a bad deploy is a five-minute story instead of a five-hour one.

POST/v1/servers/{id}/snapshotstake a snapshot
GET/v1/servers/{id}/snapshotslist snapshots
POST/v1/snapshots/{id}/restorerestore a snapshot
DELETE/v1/snapshots/{id}delete a snapshot
bash — snapshot before a deploy
$ curl -X POST https://api.sumicloud.casa/v1/servers/vps-8f2a/snapshots \
  -H "Authorization: Bearer $SUMICLOUD_KEY" \
  -d '{"label":"pre-deploy-2026-11-20"}'
✓ snapshot snap_3c91 created in 18s
  • Consistent by default. The filesystem is quiesced before the copy, so a snapshot never captures a half-written file.
  • Restore is a fork. Restoring a snapshot rewrites the server's disk; the snapshot itself stays intact for the next time.
  • Backups are automatic. Daily for 7 days on every plan, weekly for 4 weeks on medium and up. You can also trigger one on demand.
06

Network & DNS

Manage the network side without touching the server. Firewalls, additional IPs, and a small DNS zone per server — enough to point a domain at a box and lock down the ports that matter.

GET/v1/servers/{id}/networkIPs and usage
POST/v1/servers/{id}/firewalladd a firewall rule
DELETE/v1/servers/{id}/firewall/{rule}remove a rule
POST/v1/servers/{id}/dnscreate a DNS record
bash — allow only SSH and HTTPS
$ curl -X POST https://api.sumicloud.casa/v1/servers/vps-8f2a/firewall \
  -H "Authorization: Bearer $SUMICLOUD_KEY" \
  -d '{"action":"allow","port":"22","proto":"tcp"}'
$ curl -X POST https://api.sumicloud.casa/v1/servers/vps-8f2a/firewall \
  -d '{"action":"allow","port":"443","proto":"tcp"}'
✓ 2 rules applied

New servers ship with a default-deny firewall and only SSH open. That is deliberate: a fresh box should not be reachable on every port while you are still deciding what it will run.

07

Metrics

Live CPU, memory, disk and network for any server, at one-minute resolution. Pull it into your own dashboard, or let our webhooks push it to you.

GET/v1/servers/{id}/metricscurrent + historical metrics
response
{
  "data": {
    "cpu_percent": 23.4,
    "ram_used_gb": 3.1,
    "ram_total_gb": 8.0,
    "disk_used_gb": 12.7,
    "net_in_mbps": 41.2,
    "net_out_mbps": 18.9
  }
}

Pass ?window=1h, 6h or 24h to get the series instead of the current sample. The data is the same feed the panel's graphs read, so what you see in your tool matches what a human sees in the panel — no rounding drift between the two.

08

Webhooks

Rather than poll, let the API tell you when something happens. Register a URL and we POST a signed event to it the moment a server changes state.

POST/v1/webhooksregister a webhook
GET/v1/webhookslist webhooks
DELETE/v1/webhooks/{id}remove a webhook
event payload
{
  "event": "server.running",
  "server": "vps-8f2a",
  "region": "sg-sin",
  "at": "2026-11-20T09:41:47Z",
  "signature": "sha256=..."
}
  • Signed. Every delivery carries a sha256 HMAC of the body with your webhook secret. Verify it before you act — an unsigned event is not ours.
  • Retried. A failed delivery is retried with exponential backoff for up to an hour, so a brief outage on your side does not lose an event.
  • Idempotent by design. Each event has a stable ID. Deduplicate on it and a retry can never double-apply.
09

Rate Limits

Limits exist to keep one runaway script from slowing the API down for everyone else. They are generous enough that normal automation never feels them.

ScopeLimitWindow
Per key120 requestsper minute
Provisioning10 new serversper hour
Snapshots30 per serverper day
rate-limit headers on every response
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 1763622060

When you do hit a limit you get a 429 with a Retry-After header. Back off for that many seconds and continue — do not retry immediately, because the limit is per minute, not per request.

10

Error Codes

Errors are JSON too, with a machine-readable code and a sentence a human can read. No mystery status pages, no "something went wrong".

StatusCodeWhat it means
400invalid_requestA field is missing or malformed. The message names the field.
401unauthorizedKey missing, revoked, or wrong environment (test key on live URL).
403forbiddenThe key is valid but scoped out — e.g. a read-only key calling reboot.
404not_foundThe server, snapshot or webhook does not exist under this key.
409conflictThe server is mid-operation. Wait for it to settle and retry.
422unprocessableValid shape, impossible value — e.g. a plan that does not exist in that region.
429rate_limitedToo many requests. Honour Retry-After.
500internalOur side. Quote the request_id and we will look at it.
error shape
{
  "error": {
    "code": "conflict",
    "message": "server vps-8f2a is rebooting, retry in 20s",
    "request_id": "req_01J9XK..."
  }
}
11

Regions & Plans

The same plans and regions the panel offers, exposed as slugs. Query them live instead of hard-coding, because the list grows and a hard-coded region is a future 422.

GET/v1/regionsavailable regions
GET/v1/plansavailable plans and pricing
RegionCodeRegionCode
Singaporesg-sinFrankfurtde-fra
Tokyojp-tyoAmsterdamnl-ams
New Yorkus-nyLos Angelesus-la
Sydneyau-sydLondongb-lon
PlanvCPURAMNVMeBandwidth
micro22 GB40 GBunmetered, fair use
small48 GB80 GBunmetered, fair use
medium616 GB160 GBunmetered, fair use
large832 GB320 GBunmetered, fair use

Resizing is a PUT with the new plan. Upgrades apply live with no reboot; downgrades apply at the next scheduled reboot. The API tells you which it will be in the response.

12

Common Questions

The API is plain REST, so any HTTP client is an SDK. We publish thin wrappers for Python and Node that add retries and webhook signature verification, but they are optional — the curl examples on this page are the source of truth.

Yes. A sk_test_ key runs against a sandbox that accepts every call and returns realistic data without provisioning hardware or charging anything. Use it to build your automation, then flip to a live key when you are ready.

Nothing. The API is a control plane, not the servers themselves. A running VPS keeps running, keeps its IP, and keeps serving traffic through any API outage. You just cannot issue new commands until it is back.

Everything the panel does for servers, snapshots, backups, firewall and DNS is in the API. A few panel-only conveniences — like the one-click app installer — are not, because they are interactive by nature. If you need a panel feature in the API, ask through the contact form and it is a real request, not a form letter.

Quote the request_id from the response. It points at the exact log line, so the answer comes back fast. Send it through the contact form with the API topic selected and it lands with the person who can actually read the trace.

The 99.99% uptime figure applies to the servers. The API is a separate service and we track it separately, but in practice it rides the same infrastructure and has not had a maintenance window that touched a running server. If the API is down, your servers are not.

Something Not Covered Here?

Need an endpoint that does not exist yet?
Tell us what you would build with it.

The most useful API features we have shipped came from a customer describing the script they wanted to write. Describe yours and you will get a straight answer about whether it is on the way — and if not, who to talk to.

Contact the API Team
Bearer auth, no OAuth Free sandbox with test keys Signed webhooks with retries