Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
REST API v1

CloudSat API reference

Everything you do in the console, from a script: list and deploy servers, run power actions, take snapshots and manage SSH keys. JSON over HTTPS with scoped tokens.

Overview

The base URL is https://cloudsat.io/api/v1. Requests and responses use JSON (Content-Type: application/json), timestamps are ISO 8601 in UTC and money is in US dollars. Catalog endpoints are public; everything about your account needs a token.

curl https://cloudsat.io/api/v1/plans

Authentication

Create a token in the console under API. A token is shown once: store it like a password. Choose its scope:

  • Read: GET requests only (list servers, read tasks, check the balance).
  • Read and write: also deploy, delete, run actions and manage SSH keys. Deploys spend your balance.

Send it in the Authorization header. Tokens start with cs_live_. You can give a token an expiry date and revoke it at any time; every call made with it appears in your account activity.

curl -H "Authorization: Bearer cs_live_your_token" https://cloudsat.io/api/v1/account

Errors

Errors use standard HTTP status codes and a JSON body with a stable code and a readable message.

{
  "error": {
    "code": "invalid_request",
    "message": "Some fields are not valid.",
    "fields": { "region": "Choose a region." }
  }
}
StatuscodeWhen
400invalid_jsonThe body is not a JSON object.
401unauthorizedMissing, unknown, revoked or expired token.
402insufficient_balanceThe balance does not cover the deploy; missing_usd says how much to add.
403forbiddenA read-only token tried to change something.
404not_foundUnknown endpoint, or the object is not on your account.
409conflictThe action is not possible in the current state (for example a server already being rebuilt).
422invalid_requestValidation failed; fields lists the problems.
429rate_limitedToo many requests; wait for the Retry-After seconds.
503orders_paused, unavailableDeploys paused for maintenance, or the API is temporarily down.

Rate limits

Each token can make 120 requests per minute. Past that, calls return 429 with a Retry-After header. Polling a task every few seconds is fine; polling every server every second is not.

Tasks and async actions

Deploys, power actions, rebuilds, resizes, snapshots and deletions run in the background. They answer 202 Accepted (201 for deploys) with a task id. Follow the task with GET /tasks/{id} or read the server: status moves from provisioning to running when it is ready, and pending_action shows what is in progress.

Task statuses: queued, running, done, failed, cancelled.

Public endpoints

GET/statuspublic

Overall status and the state of each region.

GET/regionspublic

Every region with its id (used when deploying), code, city, country and whether it is available.

GET/planspublic

Every plan with its id, family (cloud, hf, gpu), vCPU, memory, disk, transfer, GPU, monthly_usd, hourly_usd and stock.

{ "plans": [ { "id": "cloud-1g", "family": "cloud", "vcpu": 1, "ram_mb": 1024, "disk_gb": 25,
  "transfer_tb": 1, "gpu": null, "monthly_usd": 2.78, "hourly_usd": 0.00386, "available": true }, … ] }
GET/imagespublic

Operating system images (ubuntu-24.04, debian-13, win-2025…) and one-click apps (app:wordpress, app:docker…) with their minimum memory.

Account

GET/accountread

Your account reference, email, balance in USD, whether two-factor authentication is on, and the creation date.

{ "account": { "ref": "7F3K-2QXA", "email": "you@example.com", "balance_usd": 84.12, "two_factor": true, "created_at": "2026-11-02T09:14:00+00:00" } }

Servers

GET/serversread

Every server on your account that is not deleted, newest first, as server objects.

Create servers

POST/serverswrite

Deploys one or more servers and charges your balance the same way the console does: hourly servers need a balance that covers their first 120 hours, prepaid servers pay their period up front (3 months −5%, 6 months −10%, 12 months −15%).

FieldTypeDescription
planstringRequired. A plan id from /plans.
regionstringRequired. A region id from /regions, for example fra1.
imagestringRequired. An image or app id from /images.
hostnamestringLowercase letters, digits, hyphens and dots, up to 63 characters. Generated from the image and region when left out.
cyclestringhourly (default), monthly, quarterly (3 months), semiannual (6 months) or yearly (12 months). Longer periods cost less per month: see billing_periods in GET /plans.
quantityinteger1 to 5 identical servers. Default 1.
ssh_keysarrayIds of SSH keys on your account to install for root.
labelstringA display name.
script_idstringId of a startup script from your account, run on first boot.
firewallstringId of a firewall group from your account.
nestedbooleanNested virtualization, plans with 8 GB or more, +11%.
auto_renewbooleanRenew prepaid periods from the balance. Default true.
curl -X POST https://cloudsat.io/api/v1/servers \
  -H "Authorization: Bearer cs_live_your_token" \
  -H "Content-Type: application/json" \
  -d '{"plan":"cloud-2g","region":"fra1","image":"ubuntu-24.04","hostname":"web-1","ssh_keys":[12]}'

The response (201) lists the new servers with status: "provisioning".

One server

GET/servers/{id}read

One server object. Server ids look like srv_k2m9x4qa.

DELETE/servers/{id}write

Deletes the server and its snapshots. Billing stops; this cannot be undone. Answers 202 with a task id.

Actions

POST/servers/{id}/actionswrite

Send a JSON body with a type:

typeExtra fieldEffect
power_onStarts the server.
power_offStops it. Billing continues while it is off, because the resources stay reserved.
rebootGraceful restart.
resetHard reset, like pulling the plug.
rebuildimageReinstalls with another image. Erases the disk; IP addresses stay.
resizeplanMoves to a bigger plan of the same family. The disk grows, IPs stay.
curl -X POST https://cloudsat.io/api/v1/servers/srv_k2m9x4qa/actions \
  -H "Authorization: Bearer cs_live_your_token" -H "Content-Type: application/json" \
  -d '{"type":"reboot"}'
# {"task":"tsk_8d2kq0za","status":"queued"}

Snapshots

GET/servers/{id}/snapshotsread

Snapshots of the server with their size and status.

POST/servers/{id}/snapshotswrite

Takes a snapshot. Optional name. Up to 10 per server, billed $0.0384 per GB per month.

Tasks

GET/tasks/{id}read

The type, status, server and result of a background task.

{ "task": { "id": "tsk_8d2kq0za", "type": "reboot", "status": "done", "server": "srv_k2m9x4qa",
  "result": null, "created_at": "2026-11-18T10:02:11+00:00", "finished_at": "2026-11-18T10:02:40+00:00" } }

SSH keys

GET/ssh-keysread

Keys on your account with their fingerprint.

POST/ssh-keyswrite

Adds a key: name and public_key (OpenSSH format: ssh-ed25519, ssh-rsa or ecdsa).

DELETE/ssh-keys/{id}write

Removes a key from your account. Servers that already have it keep it in their authorized_keys.

Server object

FieldDescription
idServer id, srv_ followed by 8 characters.
nameHostname.
labelDisplay name.
tagsArray of tags.
statusprovisioning, running, stopped, rebuilding, resizing, suspended, deleting or failed.
status_textThe same, as shown in the console.
poweron or off.
pending_actionType of the task in progress, or null.
planPlan id.
vcpu, ram_mb, disk_gb, transfer_tbResources.
gpuGPU model and count, or null.
region, region_nameRegion id and city.
image, appImage id and app slug.
ipv4, ipv6, reverse_dnsAddresses (null until the server is ready).
billing_cyclehourly, monthly, quarterly, semiannual or yearly.
monthly_price_usdPrice of the plan per month, extras included, before any period discount.
term_months, term_price_usdMonths in one billing period (0 for hourly) and what one period costs, discount included: the amount of each renewal.
auto_renew, term_ends_atRenewal of prepaid periods.
created_at, ready_atWhen it was ordered and when it was delivered.

Keep tokens out of code. Read them from an environment variable or a secret store, give scripts read-only tokens when they only read, and revoke a token as soon as it may have leaked.