Loading…
Loading documentation...
Public API v1
Scoped Bearer tokens let your CLI, CI pipeline, or AI agent use the Servers Are Up API surface — inspect, power, and rebuild instances, take snapshots and backups, run commands, manage files, open ports, and subscribe to emitted events.
Every request needs Authorization: Bearer sau_….Tokens are created in Account > API Keys and scoped — narrow the scope list to what you actually need.
# List your instances
curl https://serversareup.com/api/v1/instances \
-H "Authorization: Bearer sau_xxxxxxxxxxxxxxxx"
# Run a command inside a VM (SSH-in-the-API)
curl -X POST https://serversareup.com/api/v1/instances/INSTANCE_ID/exec \
-H "Authorization: Bearer sau_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"command":"apt-get update && apt-get -y install nginx"}'
# Restart a running VM through the durable power-command path
curl -X POST https://serversareup.com/api/v1/instances/INSTANCE_ID/power \
-H "Authorization: Bearer sau_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"action":"restart"}'The API is designed for autonomous use — verbs are predictable, most errors include a code field, and many long-running calls return a taskId you can poll. Point Claude / ChatGPT at this page, drop in a scoped token, and ask it to "draft a Postgres + n8n stack on a 4-core instance". Calls that answer 202 have queued work: have the agent poll the instance until it finishes before it reports success.
Read /api/v1/catalog for products and current terms/privacy identifiers. After the account holder authorizes those terms and the purchase, send one configured item with a stable Idempotency-Key. Confirmed funded orders can provision immediately; card payment returns a hosted checkoutUrl. Poll the order every 5 seconds, then read each delivered instance's access details. Organization keys remain inside their organization.
| Method | Path | Summary | Scope |
|---|---|---|---|
| POST | /api/v1/orders | Create a configured product order through the same checkout as the dashboard | billing:write + instances:write |
| GET | /api/v1/orders | List orders with limit/offset pagination | billing:read |
| GET | /api/v1/orders/{id} | Poll payment/provisioning status and delivered instance IDs | billing:read |
| POST | /api/v1/deploy | Alias for the configured product order endpoint | billing:write + instances:write |
| GET | /api/v1/instances/{id}/access | Published SSH host/port/login, host-key pin, RDP and application endpoints | instances:read |
| GET | /api/v1/instances/{id}/access?credentials=true | Explicit audited credential retrieval; no-store response | instances:read + instances:exec |
List, inspect, rename, power, rebuild, resize and delete virtual machines. Power, rebuild and resize answer 202 with a task and Location header; follow that monitor for the recorded outcome. A rebuild reinstalls the operating system a server was bought with; a Linux plan server keeps its data volume and SSH host key and gets a new password. A resize moves a Linux plan server to a larger plan of its family. Collections return concrete member and pagination links. Read the canonical instance ETag and send it as If-Match on metadata PATCH to prevent overwriting a changed resource. A stale or weak validator returns 412; omitting the header keeps the existing unconditional operation.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/instances | List all your instances | instances:read |
| GET | /api/v1/instances/{id} | Read instance links, metadata action and a strong ETag | instances:read |
| GET | /api/v1/instances?id=ID | Legacy projection; follow its self link for the canonical validator | instances:read |
| PATCH | /api/v1/instances/{id} | Update name and tags; optional If-Match rejects stale writes with 412 (hostname is not editable) | instances:write |
| GET | /api/v1/instances/{id}/status | Live VM status + RRD point | instances:read |
| GET | /api/v1/instances/{id}/metrics?timeframe=hour | Time-series CPU / RAM / disk / net | instances:read |
| POST | /api/v1/instances/{id}/power | Start / stop / restart; answers 202 with the provider command | instances:power |
| POST | /api/v1/instances/{id}/rebuild | Reinstall the operating system a server was bought with, from its current image (Windows, and the Linux plans); answers 202 with the provider command. Another OS answers 400; a server from an older plan answers 501 | instances:write |
| POST | /api/v1/instances/{id}/resize | Move a Linux plan server to a larger plan of its family; answers 202 with the provider command. A plan with less storage answers 409; another server answers 501 | instances:write |
| POST | /api/v1/instances/{id}/reset-password | Reset the OS root / admin password | instances:write |
| POST | /api/v1/bulk/power | Power action across up to 50 instances | instances:power |
Power, rebuild and resize return a task and Location header. Follow that link with instances:read to poll the recorded outcome. PENDING and PROCESSING are unfinished; SUCCEEDED and FAILED are recorded outcomes. INCONCLUSIVE means the outcome is unknown: ask support before another mutation. Retry-After suggests the next poll delay for unfinished tasks. Read the instance separately for its current state. Task history requires current access to both the operation and the instance; private command data is omitted.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/instances/{id}/tasks | List retained tasks with concrete links; limit defaults to 50 (1-200), offset to 0 | instances:read |
| GET | /api/v1/instances/{id}/tasks/{taskId} | Read the task state, timestamps and strong ETag | instances:read |
Run shell commands inside your instance and read or write files programmatically. Requires a token with the relevant scope.
| Method | Path | Summary | Scope |
|---|---|---|---|
| POST | /api/v1/instances/{id}/exec | Run a shell command in the VM | instances:exec |
| GET | /api/v1/instances/{id}/files?path=/etc/hostname | Read a file from the VM | instances:files:read |
| PUT | /api/v1/instances/{id}/files | Write a file into the VM | instances:files:write |
| POST | /api/v1/instances/{id}/console | Coming soon: a browser console session for the server, for its owner only | instances:write |
Taking or deleting a snapshot, and taking a backup, queues a provider command and answers 202. A server keeps at most three snapshots. Restoring a snapshot of a server from the Linux plans answers 202 too: the system disk returns to the snapshot and the password to the one the server had then, and the data volume keeps its contents. Scheduling backups is not in the API yet.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/instances/{id}/snapshots | List the server’s snapshots | snapshots:read |
| POST | /api/v1/instances/{id}/snapshots | Take a snapshot; answers 202 with the provider command | snapshots:write |
| DELETE | /api/v1/instances/{id}/snapshots/{snapshotId} | Delete a snapshot; answers 202 while its image and volume snapshots are removed | snapshots:write |
| POST | /api/v1/instances/{id}/snapshots/{snapshotId}/restore | Restore a snapshot of a Linux plan server; answers 202 with the provider command | snapshots:write |
| GET | /api/v1/instances/{id}/backups | List stored backup metadata; not proof of provider restore availability | snapshots:read |
| POST | /api/v1/instances/{id}/backups | Take a backup; answers 202 with the provider command | snapshots:write |
View your networks and queue owned Azure TCP forwards within your allocated block (currently ports 30201–39999). HTTP 202 means pending work. Listing distinguishes requestedActive from pending, failed, inconclusive, published or unverified publicationStatus; published records local receiver publication, not independent external reachability.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/networks | Your environment network: its range, its gateway and each server’s private address | network:read |
| GET | /api/v1/instances/{id}/port-forwards | Read forward intent and recorded local publication | network:read |
| POST | /api/v1/instances/{id}/port-forwards | Queue a port forward | network:write |
| DELETE | /api/v1/instances/{id}/port-forwards?externalPort=30807&protocol=tcp | Queue port removal | network:write |
| PATCH | /api/v1/instances/{id}/port-forwards | Set who may connect to a forward (allowedSources: a list, or null for anyone); the Azure edge drops every other address | network:write |
Read-only status for deployments and preview environments. Neither is created through this API.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/deploy/{id} | Read legacy deployment/instance status | instances:read |
| GET | /api/v1/preview-environments | List preview environments | instances:read |
Public, IP-rate-limited discovery requires no token. Omit type for all products, or use a case-sensitive filter below. VM is also accepted as an alias for INSTANCE_PLAN. Read commercialAvailability.purchasable before checkout; listing a product does not make it available.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/catalog?type=INSTANCE_PLAN | VM products, including Linux and Windows | (none) |
| GET | /api/v1/catalog?type=GAME_SERVER | Game server products and current availability | (none) |
| GET | /api/v1/catalog?type=INSTANT_APP | Instant App products and current availability | (none) |
| GET | /api/v1/catalog?type=DOCKER | Managed Docker products | (none) |
| GET | /api/v1/catalog?type=KUBERNETES | Kubernetes products | (none) |
| GET | /api/v1/catalog?type=STORAGE | Storage products | (none) |
| GET | /api/v1/catalog?type=ADDON | Add-on products and current availability | (none) |
| GET | /api/v1/catalog?type=BACKUP | Backup products | (none) |
| GET | /api/v1/catalog?type=TEMPLATE | Separate static application template library | (none) |
Subscribe to emitted instance events instead of polling. Accepted values: *, instance.created, instance.deleted. Each delivery is signed with HMAC-SHA256.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/webhooks | List webhooks | webhooks:read |
| POST | /api/v1/webhooks | Create a webhook for an accepted emitted event or * | webhooks:write |
| DELETE | /api/v1/webhooks?id=ID | Delete a webhook | webhooks:write |
Read-only access to your usage telemetry and active subscriptions.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/usage?since=2026-05-01&until=2026-05-30 | Aggregate bandwidth + subscriptions + invoices | usage:read |
| GET | /api/v1/reservations | List your reservations | instances:read |
| GET | /api/v1/reservations/plans | List available reservation plans + annual-commit pricing | (none) |
Organize resources into Resource Groups with universal tags, CanNotDelete/ReadOnly management locks, and scoped RBAC; provision Managed Cloud Storage hosted via Microsoft Azure (Hot/Cool/Archive, LRS/ZRS/GRS/RA-GRS, double AES-256-GCM + Azure SSE encryption, WORM locks, and SAS links); and operate Multi-Model Cloud Databases, Key Vault KMS, Cloud Identity (OIDC/SCIM/ZTNA), Cloud SIEM & SOAR, API Gateway, Cloud DNS, Serverless/Workflows/IoT, Governance, Recovery Vaults, and 112 Cloud & SaaS services. Mutations honor CanNotDelete/ReadOnly locks and your environment AI Agent Write Guardrail (READ_ONLY, SAFE_MUTATIONS, FULL_AUTONOMOUS).
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1/resource-manager?section=groups | Read Resource Groups, tags, locks, RBAC, diagnostics, quotas, settings, or export Declarative JSON / Terraform HCL | cloud:read |
| POST | /api/v1/resource-manager | Create/update Resource Groups, tags, CanNotDelete/ReadOnly locks, RBAC assignments, diagnostics, or Portal/AI settings | cloud:write |
| GET | /api/v1/blob-storage | List Managed Cloud Storage plans hosted via Microsoft Azure, containers, blobs, WORM locks, and BYO Azure accounts | cloud:read |
| POST | /api/v1/blob-storage | Purchase Azure-backed Cloud Storage plans, create containers, upload double-encrypted blobs, mint SAS links, or set WORM retention | cloud:write |
| GET | /api/v1/cosmos | List SAU Multi-Model Cloud Databases (JSONB document, SQL, key-value, graph, pgvector) and RU metrics | cloud:read |
| POST | /api/v1/cosmos | Create databases/containers, upsert/query documents & vectors, or rotate keys | cloud:write |
| GET | /api/v1/vault/secrets | List envelope-encrypted Key Vault secrets and versions | cloud:read |
| POST | /api/v1/vault/secrets | Set, rotate, or soft-delete versioned Key Vault secrets | cloud:write |
| GET | /api/v1/entra-suite | Inspect OIDC/OAuth2 apps, Service Principals, SCIM 2.0, Conditional Access, ZTNA/PIM/CIEM, and /api/v1/bastion | cloud:read |
| POST | /api/v1/entra-suite | Configure Cloud Identity apps, SCIM provisioning, Conditional Access, ZTNA routes, Verifiable Credentials, or JIT elevation | cloud:write |
| GET | /api/v1/sentinel | Read Cloud SIEM rules, MITRE ATT&CK incidents, SOAR playbooks, and /api/v1/defender-purview (CSPM, DLP, EASM) | cloud:read |
| POST | /api/v1/sentinel | Run SIEM queries, create SOAR playbooks, triage incidents, or run CSPM/DLP/EASM posture scans | cloud:write |
| GET | /api/v1/apim | Inspect API Gateway routes/WAF, /api/v1/cloud-dns zones, and SDN state rollback points | cloud:read |
| POST | /api/v1/cloud-dns | Create authoritative Cloud DNS zones/records, API Gateway policies, or SDN state rollback points | cloud:write |
| GET | /api/v1/serverless-compute | List serverless functions, batch pools, confidential enclaves, /api/v1/workflows, /api/v1/service-bus, /api/v1/app-config, /api/v1/container-registry, and /api/v1/iot-chaos | cloud:read |
| POST | /api/v1/workflows | Trigger DAG workflows, invoke serverless functions, publish queue messages, push OCI manifests, or run Chaos Studio experiments | cloud:write |
| GET | /api/v1/cloud-services | List all 112 Cloud & Managed SaaS offerings, subscriptions, /api/v1/governance budgets, and /api/v1/recovery-vault vaults | cloud:read |
| POST | /api/v1/cloud-services | Subscribe to or manage Cloud & SaaS services, governance budgets, and off-host Recovery Vault policies | cloud:write |
| POST | /api/v1/cli/exec | Execute any sau CLI v0.2 command over HTTPS with identical scope, lock, and AI write-guardrail enforcement | (command-specific) |
Identity, SSH keys, and the token that called the API.
| Method | Path | Summary | Scope |
|---|---|---|---|
| GET | /api/v1 | Service root: read links and write actions; templated links need resource identifiers. Each target keeps its own scopes. | (any) |
| GET | /api/v1/account | Identity + token scopes | (any) |
| GET | /api/v1/ssh-keys | List SSH keys | ssh-keys:read |
| POST | /api/v1/ssh-keys | Upload a public key | ssh-keys:write |
| DELETE | /api/v1/ssh-keys/{id} | Remove a key | ssh-keys:write |
| GET | /api/v1/version | API version probe | (none) |
instances:readinstances:writeinstances:powerinstances:execinstances:files:readinstances:files:writesnapshots:readsnapshots:writenetwork:readnetwork:writessh-keys:readssh-keys:writeisos:readisos:writestorage:readstorage:writewebhooks:readwebhooks:writeusage:readactivity:readcatalog:readaccount:readbilling:readbilling:writecloud:readcloud:writeGrant a token only the scopes it needs. Each request is checked against the token's scopes; a missing scope returns 403 (AUTH-1003). The wildcard * is not a grantable scope.