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.

API operational Version v1 Format JSON Rate limit 120 req/min
quick start — create a server
$ export KC_TOKEN="kcs_live_••••••••••••••••" $ curl -X POST https://api.kasumicloud.cfd/v1/servers \ -H "Authorization: Bearer $KC_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "plan": "vps-essential", "region": "sg1", "os": "ubuntu-24.04", "hostname": "web-01" }' 201 Created { "id": "srv_8f2c41a9", "status": "provisioning" } $ # ~60 seconds later $ curl -H "Authorization: Bearer $KC_TOKEN" \ https://api.kasumicloud.cfd/v1/servers/srv_8f2c41a9 { "status": "active", "ipv4": "203.0.113.42" }

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.

DetailValue
Base URLhttps://api.kasumicloud.cfd/v1
ProtocolHTTPS only (TLS 1.2+)
Content typeapplication/json on request and response
Character setUTF-8
VersioningURI-prefixed — current version is v1
TimestampsISO 8601 UTC, e.g. 2026-11-06T08:14:22Z
IDsPrefixed 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
  }
}
Money is never moved by this API. Checkout stays on the hosted payment page, so card data never reaches your scripts or our servers. The API creates orders and reads their status — it cannot charge a card.

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"

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.

ScopeGrantsTypical use
servers:readList and inspect servers, usage and IP infoDashboards, monitoring
servers:writeCreate, rebuild, resize, power actions, destroyCI pipelines, autoscaling
snapshots:readList snapshots and their statusBackup verification jobs
snapshots:writeCreate and restore snapshotsRelease safety nets
network:readBandwidth counters, reverse DNS, IP managementTraffic reporting
webhooks:writeRegister and rotate webhook endpointsEvent-driven automation
Never commit a token. Keep it in an environment variable or a secrets manager. A token in a public repository is a live credential until you revoke it — rotation is instant and takes effect on the next request.

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.

LimitValueNotes
Requests120 / minutePer token, rolling window
Concurrent writes10Create, rebuild and destroy actions
Server creates20 / hourRaises on request for genuine scale-out
Burst30Short 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
Back off exponentially, don't hammer. On 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.

GET/v1/serversList all servers on the accountservers:read
POST/v1/serversCreate and provision a serverservers:write
GET/v1/servers/{id}Retrieve one serverservers:read
PUT/v1/servers/{id}Rename or change reverse DNSservers:write
DELETE/v1/servers/{id}Destroy a server — irreversibleservers:write
POST/v1/servers/{id}/actionsPower on, off, reboot or rebuildservers:write
POST/v1/servers/{id}/resizeChange plan — data and IP preservedservers:write
GET/v1/servers/{id}/usageCPU, memory, disk and bandwidth countersservers:read
GET/v1/servers/{id}/consoleOut-of-band console URLservers:read
GET/v1/snapshotsList snapshots across all serverssnapshots:read
POST/v1/servers/{id}/snapshotsCreate a snapshot of one serversnapshots:write
GET/v1/snapshots/{id}Retrieve snapshot statussnapshots:read
POST/v1/snapshots/{id}/restoreRoll the server back to this snapshotsnapshots:write
DELETE/v1/snapshots/{id}Delete a snapshotsnapshots:write
GET/v1/ipsList IPv4 and IPv6 addressesnetwork:read
PUT/v1/ips/{address}/ptrSet the reverse DNS recordnetwork:read
POST/v1/ips/assignAttach an additional IPv4 to a servernetwork:read
GET/v1/bandwidthAccount-wide transfer usagenetwork:read
GET/v1/regionsAvailable regions and their statusservers:read
GET/v1/plansPlans with current pricingservers:read
GET/v1/osOperating system templatesservers:read
GET/v1/accountAccount profile and balanceservers:read
GET/v1/eventsAudit log of API and panel actionsservers:read
POST/v1/webhooksRegister an event webhookwebhooks:write
GET/v1/webhooksList registered webhookswebhooks:write
DELETE/v1/webhooks/{id}Remove a webhookwebhooks:write

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"
}

Request parameters

FieldTypeDescription
planrequiredstringOne of vps-starter, vps-basic, vps-advanced, vps-essential. See /v1/plans.
regionrequiredstringsg1, hk1 or in1. Not changeable later without a snapshot restore.
osrequiredstringTemplate slug from /v1/os, e.g. ubuntu-24.04, debian-12, almalinux-9, windows-2022.
hostnameoptionalstringValid FQDN or label. Defaults to srv_<id>.kasumicloud.cfd.
ssh_keysoptionalarrayUploaded key IDs. Strongly recommended — password auth is enabled only if you omit this.
backupsoptionalbooleanEnable daily snapshots. Defaults to false.
user_dataoptionalstringCloud-init script run on first boot, base64 or plain text.
labeloptionalstringFree-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.

typeEffectData
power_onStarts a stopped serveruntouched
power_offHard power cut — use shutdown for graceuntouched
shutdownACPI shutdown, waits up to 90 suntouched
rebootACPI rebootuntouched
hard_rebootCycle power immediatelyuntouched
rebuildReinstall os from scratch, IP preservederased
POST /v1/servers/srv_8f2c41a9/actions

{
  "type": "rebuild",
  "os": "debian-12",
  "preserve_ip": true
}
DELETE is final. Destroying a server releases the disk immediately and there is no trash bin. Take a snapshot first if there is any chance you'll want the data — and test that you can restore it.

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"
}
Snapshots live on the same infrastructure as the server. They protect against bad changes and disk failure, not against a region-wide event. For anything you truly cannot rebuild, keep an off-site copy too — our backup guide covers restic for exactly this.

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" }
  ]
}
RegionCodeTypical latencyStatus
Singaporesg1~12 msoperational
Hong Konghk1~24 msoperational
Indiain1~31 msoperational

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.

EventFires when
server.createdA new server record exists, before provisioning
server.activeProvisioning finished and credentials were issued
server.suspendedBilling or abuse suspension was applied
server.rebuiltA rebuild completed — disk was replaced
server.destroyedThe server and its disk were released
snapshot.completedA snapshot finished and is restorable
snapshot.failedA snapshot could not be taken — alert on this
bandwidth.thresholdTransfer 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"
  }
}
Verify the signature before trusting a payload. Anyone who learns your URL can POST to it. Recompute the HMAC over the raw body with your endpoint secret and compare in constant time — and reject anything older than five minutes to stop replays.

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"
  }
}
200
OKThe request succeeded. Reads and updates return the resource.
201
CreatedA resource was created synchronously — usually a webhook registration.
202
AcceptedThe request is queued and the work is asynchronous. Poll the resource or wait for the webhook.
400
Bad RequestMalformed JSON or an unexpected field. Fix the payload; retrying unchanged won't help.
401
UnauthorizedMissing, malformed or revoked token. Check the Authorization header first.
403
ForbiddenThe token is valid but lacks the scope, or the resource belongs to another account.
404
Not FoundNo such resource. Also returned for resources you can't see, so we don't leak existence.
409
ConflictThe action isn't valid in the current state — rebuilding a server that's already rebuilding.
422
Unprocessable EntitySyntactically fine, semantically wrong — sold-out plan, hostname already in use.
429
Too Many RequestsRate limit hit. Honour Retry-After and back off exponentially.
500
Server ErrorSomething broke on our side. Safe to retry with backoff; we're already alerted.
503
UnavailableA region or endpoint is under maintenance. Check status before retrying hard.

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.

Node.js

@kasumicloud/sdk

Typed client with automatic pagination and webhook signature verification built in.

npm install @kasumicloud/sdk
Python

kasumicloud

Works with requests or httpx, sync and async, Python 3.9 and up.

pip install kasumicloud
Go

go-kasumicloud

Zero-dependency client, context-aware, with retry policies you can configure.

go get github.com/kasumicloud/go-kasumicloud
CLI

kctl

Script servers from a terminal or a shell step. Same token, same scopes.

brew install kasumicloud/tap/kctl
Terraform

kasumicloud provider

Declare infrastructure as code. Plan, apply, destroy — with state you can review.

source = "kasumicloud/kasumicloud"
OpenAPI

Spec & collections

Generate your own client or import into Postman. The spec is the source of truth.

GET /v1/openapi.json
SDK versions move independently of the API. A breaking change in a library is never a breaking change to 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.

v1.42026-10-28 added

Label filtering on GET /v1/servers?label=prod, and a label field on create. Useful for splitting staging from production in one account.

v1.32026-09-15 added

New webhook event bandwidth.threshold at 80% and 100% of the monthly allowance, so a runaway job alerts you before the overage conversation starts.

v1.22026-08-02 changed

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.

v1.12026-06-20 added

Resize endpoint POST /v1/servers/{id}/resize — change plan without losing data or your IP address.

v1.02026-04-11 stable

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.