⚡ KasumiCloud: 50% OFF all VPS hosting plans through December 31, 2026. Upgrade your performance today! ⚡
API Documentation
API documentation
Everything you can do in the client area, you can script.
A plain REST API over HTTPS with token authentication. Provision a VPS, rebuild it, snapshot it, read bandwidth usage and react to events through webhooks — no panel clicking required.
Introduction
How the API works
The KasumiCloud API is a REST interface. You send JSON, you get JSON back, and standard HTTP verbs and status codes carry the meaning. All requests must be made over TLS — plain HTTP is refused rather than redirected, so a token can never travel in the clear by accident.
| Detail | Value |
|---|---|
| Base URL | https://api.kasumicloud.cfd/v1 |
| Protocol | HTTPS only (TLS 1.2+) |
| Content type | application/json on request and response |
| Character set | UTF-8 |
| Versioning | URI-prefixed — current version is v1 |
| Timestamps | ISO 8601 UTC, e.g. 2026-11-06T08:14:22Z |
| IDs | Prefixed strings — srv_, snap_, evt_ |
A predictable shape
Every collection returns the same envelope, so pagination code is written once and reused. Single resources return the object directly.
{
"data": [
{ "id": "srv_8f2c41a9", "status": "active" },
{ "id": "srv_1b77de03", "status": "active" }
],
"meta": {
"page": 2,
"per_page": 25,
"total": 61,
"total_pages": 3
}
}
Authentication
Bearer tokens
Create a token in the client area under Profile → API tokens, then send it as an Authorization header. Tokens are shown once at creation and stored hashed after that — if you lose one, issue a new one rather than asking support to recover it.
curl https://api.kasumicloud.cfd/v1/servers \
-H "Authorization: Bearer $KC_TOKEN"
const res = await fetch("https://api.kasumicloud.cfd/v1/servers", { headers: { Authorization: `Bearer ${process.env.KC_TOKEN}` } }); <const { data }> = await res.json();
import os, requests
r = requests.get(
"https://api.kasumicloud.cfd/v1/servers",
headers={"Authorization": f"Bearer {os.environ['KC_TOKEN']}"},
)
servers = r.json()["data"]
req, _ := http.NewRequest("GET", "https://api.kasumicloud.cfd/v1/servers", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("KC_TOKEN")) resp, err := http.DefaultClient.Do(req)
Token scopes
Issue a token with only the scopes the job needs. A read-only monitoring token that leaks should not be able to rebuild a server.
| Scope | Grants | Typical use |
|---|---|---|
| servers:read | List and inspect servers, usage and IP info | Dashboards, monitoring |
| servers:write | Create, rebuild, resize, power actions, destroy | CI pipelines, autoscaling |
| snapshots:read | List snapshots and their status | Backup verification jobs |
| snapshots:write | Create and restore snapshots | Release safety nets |
| network:read | Bandwidth counters, reverse DNS, IP management | Traffic reporting |
| webhooks:write | Register and rotate webhook endpoints | Event-driven automation |
Rate limits
Be a good citizen on the network
Limits are per token, applied on a rolling minute. Normal automation never notices them; a runaway loop will, and the response tells you exactly what to do.
| Limit | Value | Notes |
|---|---|---|
| Requests | 120 / minute | Per token, rolling window |
| Concurrent writes | 10 | Create, rebuild and destroy actions |
| Server creates | 20 / hour | Raises on request for genuine scale-out |
| Burst | 30 | Short allowance above the sustained rate |
Every response carries your current budget, so a well-written client never has to guess.
X-RateLimit-Limit: 120 X-RateLimit-Remaining: 117 X-RateLimit-Reset: 1793894400 Retry-After: 4
429, wait the Retry-After seconds and double your interval on each repeat. Polling server status every 30 seconds is fine; every 200 milliseconds is what turns one customer into an incident.Endpoints
The full reference
Filter by resource below, or follow the links in the sidebar for request and response examples of the calls people use most.
Servers
Create, control, destroy
Server creation is asynchronous: the API returns immediately with status: provisioning, and the instance becomes active once the image is deployed — typically under 60 seconds. Poll the resource or subscribe to the webhook; don't sleep for a fixed number.
Create a server
POST /v1/servers Content-Type: application/json { "plan": "vps-essential", "region": "sg1", "os": "ubuntu-24.04", "hostname": "web-01", "ssh_keys": ["key_3fa91c"], "backups": true, "user_data": "#!/bin/sh\napt-get update" }
202 Accepted
{
"id": "srv_8f2c41a9",
"status": "provisioning",
"plan": "vps-essential",
"region": "sg1",
"hostname": "web-01",
"ipv4": null,
"memory_gb": 16,
"vcpu": 2,
"disk_gb": 55,
"transfer_gb": 8000,
"created_at": "2026-11-06T08:14:22Z"
}
Request parameters
| Field | Type | Description |
|---|---|---|
| planrequired | string | One of vps-starter, vps-basic, vps-advanced, vps-essential. See /v1/plans. |
| regionrequired | string | sg1, hk1 or in1. Not changeable later without a snapshot restore. |
| osrequired | string | Template slug from /v1/os, e.g. ubuntu-24.04, debian-12, almalinux-9, windows-2022. |
| hostnameoptional | string | Valid FQDN or label. Defaults to srv_<id>.kasumicloud.cfd. |
| ssh_keysoptional | array | Uploaded key IDs. Strongly recommended — password auth is enabled only if you omit this. |
| backupsoptional | boolean | Enable daily snapshots. Defaults to false. |
| user_dataoptional | string | Cloud-init script run on first boot, base64 or plain text. |
| labeloptional | string | Free-text tag, useful for filtering in /v1/servers?label=prod. |
Power and lifecycle actions
One endpoint, one type field. Actions that stop the machine are synchronous; rebuild is not.
| type | Effect | Data |
|---|---|---|
| power_on | Starts a stopped server | untouched |
| power_off | Hard power cut — use shutdown for grace | untouched |
| shutdown | ACPI shutdown, waits up to 90 s | untouched |
| reboot | ACPI reboot | untouched |
| hard_reboot | Cycle power immediately | untouched |
| rebuild | Reinstall os from scratch, IP preserved | erased |
POST /v1/servers/srv_8f2c41a9/actions { "type": "rebuild", "os": "debian-12", "preserve_ip": true }
Snapshots
Backups you can script
Snapshots capture the full disk of a server. They're the safety net before a risky deploy, and the reason a bad Friday change is a five-minute problem instead of a lost weekend.
POST /v1/servers/srv_8f2c41a9/snapshots { "name": "pre-release-2.4" } 202 Accepted { "id": "snap_71cd90aa", "server": "srv_8f2c41a9", "name": "pre-release-2.4", "status": "in_progress", "size_gb": 18.4, "created_at": "2026-11-06T08:20:01Z" }
#!/bin/sh # nightly snapshot + keep the last 7 for id in $(curl -s -H "Authorization: Bearer $KC_TOKEN" \ "https://api.kasumicloud.cfd/v1/servers?label=prod" \ | jq -r ".data[].id"); do curl -s -X POST \ -H "Authorization: Bearer $KC_TOKEN" \ -H "Content-Type: application/json" \ -d "{\"name\":\"nightly-$(date +%F)\"}" \ "https://api.kasumicloud.cfd/v1/servers/$id/snapshots" done # prune anything older than 7 days curl -s -H "Authorization: Bearer $KC_TOKEN" \ "https://api.kasumicloud.cfd/v1/snapshots" \ | jq -r ".data[] | select(.name|startswith(\"nightly-\")) | .id" \ | xargs -rn1 -I{} curl -s -X DELETE \ -H "Authorization: Bearer $KC_TOKEN" \ "https://api.kasumicloud.cfd/v1/snapshots/{}"
Regions & plans
Discover what's available
Don't hard-code plan names or regions in your tooling. Read them from the API — pricing and availability change, and a script that discovers its options won't break when they do.
200 OK
{
"data": [
{ "slug": "vps-starter", "name": "VPS Starter", "vcpu": 1, "memory_gb": 2, "disk_gb": 25, "price_monthly": "8.75", "list_price": "17.50" },
{ "slug": "vps-basic", "name": "VPS Basic", "vcpu": 1, "memory_gb": 4, "disk_gb": 30, "price_monthly": "10.50", "list_price": "21.00" },
{ "slug": "vps-advanced", "name": "VPS Advanced", "vcpu": 1, "memory_gb": 16, "disk_gb": 45, "price_monthly": "14.00", "list_price": "28.00" },
{ "slug": "vps-essential", "name": "VPS Essential", "vcpu": 2, "memory_gb": 16, "disk_gb": 55, "price_monthly": "15.00", "list_price": "30.00" }
]
}
| Region | Code | Typical latency | Status |
|---|---|---|---|
| Singapore | sg1 | ~12 ms | operational |
| Hong Kong | hk1 | ~24 ms | operational |
| India | in1 | ~31 ms | operational |
Latency figures are regional averages from our own probes, matching the numbers published on the Infrastructure page. Read live status from GET /v1/regions rather than trusting this table in code.
Webhooks
React instead of polling
Register an HTTPS endpoint and we POST events to it as they happen. Your endpoint must return a 2xx within 5 seconds — do the work on a queue, not inside the handler.
| Event | Fires when |
|---|---|
| server.created | A new server record exists, before provisioning |
| server.active | Provisioning finished and credentials were issued |
| server.suspended | Billing or abuse suspension was applied |
| server.rebuilt | A rebuild completed — disk was replaced |
| server.destroyed | The server and its disk were released |
| snapshot.completed | A snapshot finished and is restorable |
| snapshot.failed | A snapshot could not be taken — alert on this |
| bandwidth.threshold | Transfer usage crossed 80% or 100% |
POST /your/endpoint User-Agent: KasumiCloud-Webhooks/1.0 X-KC-Signature: t=1793894400,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd X-KC-Event: server.active X-KC-Delivery: dlv_9a1c33e7 { "id": "evt_4d1f8b20", "type": "server.active", "created_at": "2026-11-06T08:15:04Z", "data": { "id": "srv_8f2c41a9", "status": "active", "region": "sg1", "plan": "vps-essential", "ipv4": "203.0.113.42" } }
const crypto = require("crypto"); function verify(rawBody, header, secret, toleranceSec = 300) { const parts = Object.fromEntries( header.split(",").map(kv => kv.split("=").map(v => v.trim())) ); const expected = crypto .createHmac("sha256", secret) .update(`${parts.t}.${rawBody}`) .digest("hex"); const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < toleranceSec; const same = crypto.timingSafeEqual( Buffer.from(expected), Buffer.from(parts.v1) ); return fresh && same; } app.post("/hooks/kasumicloud", express.raw({ type: "*/*" }), (req, res) => { if (!verify(req.body, req.get("X-KC-Signature"), process.env.KC_WEBHOOK_SECRET)) { return res.status(400).send("invalid signature"); } queue.add(JSON.parse(req.body)); // return fast, work later res.sendStatus(200); });
Delivery and retries
Failed deliveries retry with exponential backoff for up to 24 hours: 1 min, 5 min, 30 min, 2 h, 8 h, then hourly. Deliveries are at-least-once, so deduplicate on event.id or X-KC-Delivery. After 24 hours of continuous failure the endpoint is disabled and we email you — that email is worth keeping an eye on.
Errors
Errors are useful, by design
Every error returns the same shape with a machine-readable code and a human-readable message. Log the request_id — quoting it in a ticket lets us find the exact call in seconds.
422 Unprocessable Entity
{
"error": {
"code": "plan_unavailable_in_region",
"message": "vps-essential is currently sold out in in1. Try sg1 or hk1.",
"status": 422,
"request_id": "req_c1f04a8b2d"
}
}
Authorization header first.Retry-After and back off exponentially.SDKs & tools
Don't write the HTTP layer twice
Official clients handle pagination, retries and rate-limit backoff for you. They're thin wrappers over the same API documented here — nothing a raw request can't do.
@kasumicloud/sdk
Typed client with automatic pagination and webhook signature verification built in.
kasumicloud
Works with requests or httpx, sync and async, Python 3.9 and up.
go-kasumicloud
Zero-dependency client, context-aware, with retry policies you can configure.
kctl
Script servers from a terminal or a shell step. Same token, same scopes.
kasumicloud provider
Declare infrastructure as code. Plan, apply, destroy — with state you can review.
Spec & collections
Generate your own client or import into Postman. The spec is the source of truth.
v1 — if your script stops working after an upgrade, that's a bug and we want the issue.Changelog
What changed recently
Additive changes ship without warning because nothing breaks. Anything that could break a client gets a deprecation header first and a new version instead of a silent edit.
Label filtering on GET /v1/servers?label=prod, and a label field on create. Useful for splitting staging from production in one account.
New webhook event bandwidth.threshold at 80% and 100% of the monthly allowance, so a runaway job alerts you before the overage conversation starts.
Rate limit raised from 60 to 120 requests per minute per token. The X-RateLimit-* headers are now sent on every response, not only on errors.
Resize endpoint POST /v1/servers/{id}/resize — change plan without losing data or your IP address.
First stable release. Servers, snapshots, IPs, regions, plans and webhooks. This version is supported for at least 24 months.
Start building
Issue a token and provision your first server.
The whole API is free with any plan — from $8.75/mo. Need a scope we don't expose yet, or hit something odd? Ask the engineers who wrote it.
