RedSwitches API Private beta Reference
Menu

RedSwitches API

The RedSwitches API lets your own tools read your account, order instant servers from your account credit, and manage and power the servers you have. It is a plain JSON API over HTTPS.

What you can do

  • Read your account, servers, traffic, orders, invoices, saved SSH keys and the instant servers on offer.
  • Order an instant server, paid from your account credit, with a dry run that shows the exact total first.
  • Rename servers, request reverse DNS, and add or remove saved SSH keys.
  • Power servers on, off and reboot them, and follow each action until it is done.

The basics

Base URLhttps://api.redswitches.com/v1. GET https://api.redswitches.com/ returns a small JSON index.
Docshttps://api.redswitches.com/docs/
FormatJSON in, JSON out. Times are UTC in ISO 8601 (2026-11-15T09:30:00Z).
AuthenticationAuthorization: Bearer <key>. See Authentication and keys.
IdsTyped strings: srv_123 (server), ord_456 (order), inv_789 (invoice), ofr_12 (offer), sshkey_7 (SSH key), act_42 (action).
MoneyDecimal strings such as "129.00", except order totals, which are minor units such as "12900".
WritesEvery POST and DELETE needs an Idempotency-Key header. See Idempotency and retries.

A first request:

curl -sS https://api.redswitches.com/v1/auth/verify \
  -H "Authorization: Bearer $REDSWITCHES_API_KEY"
{
  "id": "key_5",
  "label": "monitoring",
  "hint": "a1B2",
  "env": "live",
  "permissions": ["read"],
  "effective_permissions": ["read"],
  "expires_at": "2027-02-13T09:30:00Z"
}

Where to go next

SDKs and tools

The examples show curl and the official SDKs:

LanguagePackageEntry point
TypeScript@redswitches/apinew RedSwitches({ apiKey })
PythonredswitchesClient(api_key=...)
Gogithub.com/redswitches/redswitches-goredswitches.NewClient(key)

For agents

A plain-text index is at llms.txt, and every page has a Markdown twin under md/ (this page is md/index.md).