API Docs

API Documentation | SaemHost VPS - REST API Reference & Examples
REST API · v1

Run your whole fleet from the command line.

The SaemHost API is a plain HTTPS + JSON interface for creating, rebuilding, restarting and monitoring your VPS servers. One bearer token, predictable resources, and the same data your control panel shows. Everything below is copy-paste ready.

curl · saemhost api
$ curl https://api.saemhost.website/v1/servers \
-H "Authorization: Bearer $SAEM_TOKEN"
HTTP/1.1 200 OK
{ "id": "srv_8f2c1a", "region": "sgp1",
"plan": "vps-advanced", "status": "active" }
"ip": "103.216.14.92", "nvme_gb": 60
Endpoints
Regions
API latency
Methods
Quick start

Three calls to your first server.

Every request goes to the same base URL over HTTPS and returns JSON. Authenticate with a bearer token, list what is available, then create a server. The base URL is fixed for all accounts.

base-url
https://api.saemhost.website/v1
list your servers
curl https://api.saemhost.website/v1/servers \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
create a server
curl -X POST https://api.saemhost.website/v1/servers \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{ "plan": "vps-advanced", "region": "sgp1", "image": "ubuntu-24.04" }'
Authentication

One bearer token, sent over HTTPS.

Tokens are issued per account and carry full access to your servers. Send it in the Authorization header on every request. Requests without a valid token return 401, and the API only accepts HTTPS so the token is never sent in the clear.

required header
Authorization: Bearer SAEM_live_a1b2c3d4e5f6

Keep tokens secret

A token is a password. Store it in an environment variable or secret manager, never in client-side code or a public repository. Rotate it from your account if it is ever exposed.

Scopes and billing

The API covers server lifecycle and read-only account data. It does not process payments: billing stays on PayPal in US dollars, and no card data ever passes through the API.

Endpoints

The resources you can call.

All paths are relative to the base URL. Collection endpoints are paginated and return a total count; single-resource endpoints take the object id.

SV

Servers

Create, inspect, act on and remove VPS instances.

GET/servers

List all servers on the account

POST/servers

Create and provision a new server

GET/servers/{id}

Fetch one server with live status

PATCH/servers/{id}

Rename or change reverse DNS

POST/servers/{id}/actions

Restart, rebuild or resize

DELETE/servers/{id}

Destroy a server and free resources

PL

Plans, regions & images

Read-only catalogs used when creating a server.

GET/plans

All VPS plans with vCPU, RAM, NVMe and transfer

GET/regions

The eight available datacenter locations

GET/images

Operating system images you can deploy

GET/account

Balance, resource limits and token info

Code examples

The same call in three languages.

Create a server and wait for it to become active. Pick your language, copy it, and replace the token with your own.

create-server.sh
curl -X POST https://api.saemhost.website/v1/servers \
  -H "Authorization: Bearer $SAEM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "plan":  "vps-advanced",
    "region": "sgp1",
    "image":  "ubuntu-24.04",
    "label":  "web-01"
  }'
create-server.js
const res = await fetch("https://api.saemhost.website/v1/servers", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SAEM_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    plan: "vps-advanced", region: "sgp1",
    image: "ubuntu-24.04", label: "web-01",
  }),
});
const server = await res.json();
console.log(server.id, server.status);
create_server.py
import os, requests

r = requests.post(
    "https://api.saemhost.website/v1/servers",
    headers={"Authorization": f"Bearer {os.environ['SAEM_TOKEN']}"},
    json={"plan": "vps-advanced", "region": "sgp1",
          "image": "ubuntu-24.04", "label": "web-01"},
)
server = r.json()
print(server["id"], server["status"])
Rate limits

Fair limits, clearly reported.

Limits are per token. Every response carries the remaining quota in headers, so your code can back off before it is throttled rather than after.

120 / min

Read requests

GET calls across all endpoints. Listing servers, plans and regions counts toward this bucket.

30 / min

Write requests

POST, PATCH and DELETE calls. Server creation and actions are rate limited to protect the platform.

X-RateLimit-*

Quota headers

Each response returns the limit, remaining count and reset time so clients can pace themselves.

429

When you exceed

A 429 response with a Retry-After header. Wait the indicated seconds, then resume; nothing is lost.

Response codes

Standard HTTP, standard meaning.

The API uses conventional status codes. A non-2xx response always includes a JSON body with a machine-readable code and a human-readable message.

StatusMeaningWhat to do
200OK — the request succeededRead the JSON body
201Created — a resource was madeStore the returned id
202Accepted — action is queuedPoll the server status
400Bad request — invalid parametersCheck the message field
401Unauthorized — missing or bad tokenVerify the Authorization header
404Not found — no such resourceConfirm the object id
429Too many requests — rate limitedWait for Retry-After, then retry
500Server error — on our sideRetry with backoff, then contact us
Request API access

Want a token for your account?

API access is enabled on request so we can match the right limits to your use case. Tell us what you are building and we will issue a token and reply within 24 business hours.

Please enter your name.
Please enter a valid email address.
Please choose a use case.
Please choose a volume.
Please add a short note.
By sending this form you agree to our Privacy Policy and Acceptable Use Policy. We use your details only to provision and manage API access.
Tokens are issued and answered within 24 business hours.

Integrating the API into production?

Tell us how you plan to call it and we will confirm the limits, share the changelog and point you at the right plan tier for automation. No account required to ask a question first.

SaemHost is an independent hosting operation. All prices in US dollars, billed through PayPal. API availability, rate limits and acceptable use are governed by our published policies.