Call us now:
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.
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.
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.
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.
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.
Authentication
One key, one header, no token refresh. The key is a bearer secret — treat it like a password, because it is one.
$ 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 withsk_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.
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.
| Item | Value |
|---|---|
| Base URL | https://api.sumicloud.casa/v1 |
| Content type | application/json on both sides |
| Auth | Authorization: Bearer <key> |
| Timestamps | ISO 8601, UTC, e.g. 2026-11-20T09:41:00Z |
| Pagination | ?page=1&per_page=50, capped at 100 per page |
| Idempotency | Send Idempotency-Key on any POST to retry safely |
{
"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.
Servers
The core of the API. Create, read, power, resize, and destroy KVM servers. The same operations the panel performs, with the same guarantees.
/v1/serversprovision a new server/v1/serverslist all servers/v1/servers/{id}server details/v1/servers/{id}/rebootreboot the server/v1/servers/{id}/powerstart or stop/v1/servers/{id}/resizechange plan/v1/servers/{id}destroy the serverProvision a server
$ 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"}'
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"])
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
| Field | Type | Notes |
|---|---|---|
| plan | string | micro, small, medium, large — see Section 11 |
| region | string | region code, e.g. sg-sin, de-fra, us-ny |
| os | string | image slug, e.g. ubuntu-24.04, debian-12, rocky-9 |
| hostname | string | optional, defaults to the server ID |
| ssh_keys | string[] | 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.
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.
/v1/servers/{id}/snapshotstake a snapshot/v1/servers/{id}/snapshotslist snapshots/v1/snapshots/{id}/restorerestore a snapshot/v1/snapshots/{id}delete a snapshot$ 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.
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.
/v1/servers/{id}/networkIPs and usage/v1/servers/{id}/firewalladd a firewall rule/v1/servers/{id}/firewall/{rule}remove a rule/v1/servers/{id}/dnscreate a DNS record$ 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.
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.
/v1/servers/{id}/metricscurrent + historical metrics{
"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.
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.
/v1/webhooksregister a webhook/v1/webhookslist webhooks/v1/webhooks/{id}remove a webhook{
"event": "server.running",
"server": "vps-8f2a",
"region": "sg-sin",
"at": "2026-11-20T09:41:47Z",
"signature": "sha256=..."
}
- Signed. Every delivery carries a
sha256HMAC 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.
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.
| Scope | Limit | Window |
|---|---|---|
| Per key | 120 requests | per minute |
| Provisioning | 10 new servers | per hour |
| Snapshots | 30 per server | per day |
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.
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".
| Status | Code | What it means |
|---|---|---|
| 400 | invalid_request | A field is missing or malformed. The message names the field. |
| 401 | unauthorized | Key missing, revoked, or wrong environment (test key on live URL). |
| 403 | forbidden | The key is valid but scoped out — e.g. a read-only key calling reboot. |
| 404 | not_found | The server, snapshot or webhook does not exist under this key. |
| 409 | conflict | The server is mid-operation. Wait for it to settle and retry. |
| 422 | unprocessable | Valid shape, impossible value — e.g. a plan that does not exist in that region. |
| 429 | rate_limited | Too many requests. Honour Retry-After. |
| 500 | internal | Our side. Quote the request_id and we will look at it. |
{
"error": {
"code": "conflict",
"message": "server vps-8f2a is rebooting, retry in 20s",
"request_id": "req_01J9XK..."
}
}
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.
/v1/regionsavailable regions/v1/plansavailable plans and pricing| Region | Code | Region | Code |
|---|---|---|---|
| Singapore | sg-sin | Frankfurt | de-fra |
| Tokyo | jp-tyo | Amsterdam | nl-ams |
| New York | us-ny | Los Angeles | us-la |
| Sydney | au-syd | London | gb-lon |
| Plan | vCPU | RAM | NVMe | Bandwidth |
|---|---|---|---|---|
| micro | 2 | 2 GB | 40 GB | unmetered, fair use |
| small | 4 | 8 GB | 80 GB | unmetered, fair use |
| medium | 6 | 16 GB | 160 GB | unmetered, fair use |
| large | 8 | 32 GB | 320 GB | unmetered, 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.
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.
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