Loading…
Loading documentation...
The kinds of API token, how to create, limit and rotate one, and the errors a refused request gets.
An API token lets a program act on your account through the REST API, the sau CLI, or the hosted MCP server. Anyone who holds a token can do everything its scopes allow, so keep it the way you keep a password: in a secrets store or an environment variable, never in a repository.
| Token | Where you make it | What you can limit |
|---|---|---|
| Personal access token | Account settings > API keys | Its scopes and when it expires |
| Organization API key | Your organization's settings | Its scopes, when it expires, the addresses it may be used from, and how many requests it may make a minute |
Every token begins with sau_, and the rest of it is random. There is no test or sandbox token: every request acts on real servers and real charges, so try new automation with a token that can only read (for example instances:read or cloud:read).
instances:read, instances:write, cloud:read, cloud:write, billing:read, or billing:write), and choose when it expiresThe sau CLI signs in with a token you made here; it cannot create or revoke tokens. For Cloud Platform, Resource Manager, and Managed Cloud Storage automation, grant cloud:read for read-only inspection and add cloud:write only when mutating resources, subject to your environment's AI Agent Write Guardrail mode on Operations > Resource manager & settings.
An organization API key can be limited to the addresses it is used from: when you create the key in your organization's settings, list them in IP Allowlist. A request with that key from any other address is refused as unauthenticated. Personal access tokens carry no address limit, so keep their scopes narrow and their expiry short.
There is no rotate call. To replace a token without downtime:
Give every token an expiry, so one you forget stops working by itself.
A refused request answers with a status, a message and a code:
{
"error": "Missing scope: instances:write",
"code": "AUTH-1003"
}
| Status | Code | What it means | What to do |
|---|---|---|---|
| 401 | AUTH-1001 |
No token, or the token is unknown, expired or revoked, or an organization key came from an address its allowlist does not hold | Send Authorization: Bearer <token> with a current token, from an allowed address |
| 403 | AUTH-1003 |
The token lacks a scope this request needs; the message names it | Create a token with that scope |
| 403 | AUTH-1004 |
An access policy refused the request; reason says which |
Ask your organization's administrator |
| 429 | RATE-1001 |
This token has used its allowance for this route, or an organization key has reached its own Rate Limit | Wait the seconds in the Retry-After header |
Each route has its own request limit, and an organization key's own Rate Limit counts every route: see Rate Limits & Best Practices.
No official Python, Node.js, or Go SDK package is published today. Use the REST API or the sau CLI (CLI Installation), and check each operation against the API reference before building automation on it.
curl https://serversareup.com/api/v1/instances \
-H "Authorization: Bearer $SAU_API_KEY"
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.