Loading…
Loading documentation...
List existing instances, update metadata, control power, and request recoverable deletion via REST.
The Instances API lists and inspects instances, updates metadata, controls power, and requests recoverable deletion. Purchase configured catalog products with POST /api/v1/orders; POST /api/v1/deploy is an alias for that same checkout and provisioning flow. The instance collection itself accepts GET only.
https://serversareup.com/api/v1/instances
Retrieve all instances in your account.
GET /api/v1/instances
| Parameter | Type | Description |
|---|---|---|
limit |
integer | Number of rows (default/max: 200) |
offset |
integer | Number of rows to skip (default: 0) |
id |
string | Return one owned instance in an instance envelope |
curl "https://serversareup.com/api/v1/instances?limit=25&offset=0" \
-H "Authorization: Bearer $SAU_API_KEY"
{
"instances": [
{
"id": "ins_abc123",
"name": "web-prod-01",
"status": "RUNNING",
"publicIp": "<assigned-ipv4>",
"hostname": "web-prod-01",
"selectedOs": "ubuntu-24.04",
"createdAt": "2025-01-15T10:30:00Z",
"product": { "name": "Linux Standard", "type": "VM" }
}
],
"count": 1,
"total": 1,
"limit": 25,
"offset": 0
}
Retrieve details for a single instance.
GET /api/v1/instances/:id
curl https://serversareup.com/api/v1/instances/ins_abc123 \
-H "Authorization: Bearer $SAU_API_KEY"
| Request | Current result |
|---|---|
POST /api/v1/instances |
405; the collection route accepts GET only |
POST /api/v1/orders |
Configured catalog purchase through canonical checkout |
POST /api/v1/deploy |
Alias for the configured catalog purchase |
Start with GET /api/v1/catalog to choose a product and review current terms and configuration. Send one item with productSlug, billingInterval, and configuration, plus the current accepted legalAcceptance. Ordering requires billing:write and instances:write, with a stable Idempotency-Key for each purchase attempt. Review a confirmation response before setting confirm: true; follow checkoutUrl when card payment is required. Eligible plan capacity or credits can fund an order through the API. All products still pass the same price, funding, capacity and delivery checks as dashboard checkout.
Linux servers and Windows Server can be ordered at any size within the platform's limits. Send configuration.size as <vcpu>vcpu-<ramGb>gb-<storageGb>gb (for example 10vcpu-22gb-300gb) with any linux-* product, or with a Windows Server product (win-starter, win-standard, win-pro, win-enterprise, up to 64 vCPU); GET /api/v1/catalog?type=VM lists each product's customSize with its limits and price rule, and the quoted price is the cheapest plan of that family plus add-ons that covers the size. Other product families are sold at their listed sizes. customSize.placeable lists, per compute node, the largest size that can be placed right now (an empty list when no reading is fresh); a size above it is refused before payment with ERR_LINUX_VM_SIZE_CAPACITY.
Poll GET /api/v1/orders/{id} with billing:read, then request GET /api/v1/instances/{id}/access with instances:read for published SSH, RDP, application and web-console details. credentials=true additionally requires instances:exec and records an audit event. Organization keys remain within their organization. See the full request contract.
Modify an existing instance.
PATCH /api/v1/instances/:id
| Field | Description |
|---|---|
name |
Rename the instance |
tags |
Update tags |
hostname |
Answers 400; rename the server with name |
Only name and tags are accepted metadata updates through this route; a hostname field answers 400 and changes nothing. Resizing is not in the API yet.
curl -X PATCH https://serversareup.com/api/v1/instances/ins_abc123 \
-H "Authorization: Bearer $SAU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "web-prod-02", "tags": ["production", "web"]}'
Request a recoverable soft deletion. The route moves an owned instance into the recycle-bin lifecycle; it is not an immediate permanent purge.
DELETE /api/v1/instances/:id
curl -X DELETE https://serversareup.com/api/v1/instances/ins_abc123 \
-H "Authorization: Bearer $SAU_API_KEY"
The JSON response includes the recycle-bin result and "softDeleted": true.
POST /api/v1/instances/:id/power
| Action | Description |
|---|---|
start |
Power on a stopped instance |
stop |
Gracefully shut down |
restart |
Restart the instance |
curl -X POST https://serversareup.com/api/v1/instances/ins_abc123/power \
-H "Authorization: Bearer $SAU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "restart"}'
| Status | Code | Description |
|---|---|---|
| 400 | ERR_VALIDATION |
Missing or invalid request parameters |
| 401 | ERR_UNAUTHORIZED |
Invalid or missing API token |
| 403 | ERR_FORBIDDEN |
Token lacks the required scope or ownership |
| 404 | ERR_NOT_FOUND |
Instance ID does not exist in the caller's scope |
| 409 | Operation-specific conflict | A durable command or lifecycle state conflicts |
| 429 | ERR_RATE_LIMITED |
Too many requests; honor the retry metadata |
| 501 | ERR_NOT_SUPPORTED |
Route is retained but unsupported on OpenStack |
| 503 | ERR_PROVIDER_COMMAND_UNAVAILABLE |
The operation is Coming soon; nothing was changed |
Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.