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.
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.
https://api.saemhost.website/v1
curl https://api.saemhost.website/v1/servers \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json"
curl -X POST https://api.saemhost.website/v1/servers \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{ "plan": "vps-advanced", "region": "sgp1", "image": "ubuntu-24.04" }'
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.
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.
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.
Servers
Create, inspect, act on and remove VPS instances.
/serversList all servers on the account
/serversCreate and provision a new server
/servers/{id}Fetch one server with live status
/servers/{id}Rename or change reverse DNS
/servers/{id}/actionsRestart, rebuild or resize
/servers/{id}Destroy a server and free resources
Plans, regions & images
Read-only catalogs used when creating a server.
/plansAll VPS plans with vCPU, RAM, NVMe and transfer
/regionsThe eight available datacenter locations
/imagesOperating system images you can deploy
/accountBalance, resource limits and token info
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.
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"
}'
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);
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"])
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.
Read requests
GET calls across all endpoints. Listing servers, plans and regions counts toward this bucket.
Write requests
POST, PATCH and DELETE calls. Server creation and actions are rate limited to protect the platform.
Quota headers
Each response returns the limit, remaining count and reset time so clients can pace themselves.
When you exceed
A 429 response with a Retry-After header. Wait the indicated seconds, then resume; nothing is lost.
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.
| Status | Meaning | What to do |
|---|---|---|
| 200 | OK — the request succeeded | Read the JSON body |
| 201 | Created — a resource was made | Store the returned id |
| 202 | Accepted — action is queued | Poll the server status |
| 400 | Bad request — invalid parameters | Check the message field |
| 401 | Unauthorized — missing or bad token | Verify the Authorization header |
| 404 | Not found — no such resource | Confirm the object id |
| 429 | Too many requests — rate limited | Wait for Retry-After, then retry |
| 500 | Server error — on our side | Retry with backoff, then contact us |
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.
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.Request received
Thank you. We will send your API token to within 24 business hours.
Response within 24 business hours