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." }
}
}
| Status | code | When |
|---|---|---|
| 400 | invalid_json | The body is not a JSON object. |
| 401 | unauthorized | Missing, unknown, revoked or expired token. |
| 402 | insufficient_balance | The balance does not cover the deploy; missing_usd says how much to add. |
| 403 | forbidden | A read-only token tried to change something. |
| 404 | not_found | Unknown endpoint, or the object is not on your account. |
| 409 | conflict | The action is not possible in the current state (for example a server already being rebuilt). |
| 422 | invalid_request | Validation failed; fields lists the problems. |
| 429 | rate_limited | Too many requests; wait for the Retry-After seconds. |
| 503 | orders_paused, unavailable | Deploys 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
/statuspublicOverall status and the state of each region.
/regionspublicEvery region with its id (used when deploying), code, city, country and whether it is available.
/planspublicEvery 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 }, … ] }
/imagespublicOperating system images (ubuntu-24.04, debian-13, win-2025…) and one-click apps (app:wordpress, app:docker…) with their minimum memory.
Account
/accountreadYour 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
/serversreadEvery server on your account that is not deleted, newest first, as server objects.
Create servers
/serverswriteDeploys 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%).
| Field | Type | Description |
|---|---|---|
plan | string | Required. A plan id from /plans. |
region | string | Required. A region id from /regions, for example fra1. |
image | string | Required. An image or app id from /images. |
hostname | string | Lowercase letters, digits, hyphens and dots, up to 63 characters. Generated from the image and region when left out. |
cycle | string | hourly (default), monthly, quarterly (3 months), semiannual (6 months) or yearly (12 months). Longer periods cost less per month: see billing_periods in GET /plans. |
quantity | integer | 1 to 5 identical servers. Default 1. |
ssh_keys | array | Ids of SSH keys on your account to install for root. |
label | string | A display name. |
script_id | string | Id of a startup script from your account, run on first boot. |
firewall | string | Id of a firewall group from your account. |
nested | boolean | Nested virtualization, plans with 8 GB or more, +11%. |
auto_renew | boolean | Renew 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
/servers/{id}readOne server object. Server ids look like srv_k2m9x4qa.
/servers/{id}writeDeletes the server and its snapshots. Billing stops; this cannot be undone. Answers 202 with a task id.
Actions
/servers/{id}/actionswriteSend a JSON body with a type:
| type | Extra field | Effect |
|---|---|---|
power_on | Starts the server. | |
power_off | Stops it. Billing continues while it is off, because the resources stay reserved. | |
reboot | Graceful restart. | |
reset | Hard reset, like pulling the plug. | |
rebuild | image | Reinstalls with another image. Erases the disk; IP addresses stay. |
resize | plan | Moves 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
/servers/{id}/snapshotsreadSnapshots of the server with their size and status.
/servers/{id}/snapshotswriteTakes a snapshot. Optional name. Up to 10 per server, billed $0.0384 per GB per month.
Tasks
/tasks/{id}readThe 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
/ssh-keysreadKeys on your account with their fingerprint.
/ssh-keyswriteAdds a key: name and public_key (OpenSSH format: ssh-ed25519, ssh-rsa or ecdsa).
/ssh-keys/{id}writeRemoves a key from your account. Servers that already have it keep it in their authorized_keys.
Server object
| Field | Description |
|---|---|
id | Server id, srv_ followed by 8 characters. |
name | Hostname. |
label | Display name. |
tags | Array of tags. |
status | provisioning, running, stopped, rebuilding, resizing, suspended, deleting or failed. |
status_text | The same, as shown in the console. |
power | on or off. |
pending_action | Type of the task in progress, or null. |
plan | Plan id. |
vcpu, ram_mb, disk_gb, transfer_tb | Resources. |
gpu | GPU model and count, or null. |
region, region_name | Region id and city. |
image, app | Image id and app slug. |
ipv4, ipv6, reverse_dns | Addresses (null until the server is ready). |
billing_cycle | hourly, monthly, quarterly, semiannual or yearly. |
monthly_price_usd | Price of the plan per month, extras included, before any period discount. |
term_months, term_price_usd | Months in one billing period (0 for hourly) and what one period costs, discount included: the amount of each renewal. |
auto_renew, term_ends_at | Renewal of prepaid periods. |
created_at, ready_at | When 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.