Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/security

API Token Security

The kinds of API token, how to create, limit and rotate one, and the errors a refused request gets.

Intermediate
4 min
Updated 2026-11-12

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

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.

Kinds of Token

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).

Creating a Token

  1. Go to Account settings > API keys
  2. Name the token, select its scopes (such as instances:read, instances:write, cloud:read, cloud:write, billing:read, or billing:write), and choose when it expires
  3. Click Create token
  4. Copy the token immediately: it is shown only once

The 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.

Limiting a Key to Known Addresses

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.

Rotating a Token

There is no rotate call. To replace a token without downtime:

  1. Create a new token with the same scopes.
  2. Switch every client to the new token.
  3. Revoke the old token on the page where you made it.

Give every token an expiry, so one you forget stops working by itself.

Errors

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.

Client Availability

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"

Next Steps

  • API Rate Limits
  • Instances API
  • Webhooks & Events

Related Articles

Instances API

Read more

Rate Limits & Best Practices

Read more

API Token Security

Read more

Frequently Asked Questions

What does the API Token Security documentation guide cover?
The kinds of API token, how to create, limit and rotate one, and the errors a refused request gets. It is rated intermediate difficulty (4 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with API Token Security?

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.

Was this article helpful?

On this page

Kinds of TokenCreating a TokenLimiting a Key to Known AddressesRotating a TokenErrorsClient AvailabilityNext Steps
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library