← Skies Adrift

API documentation

The website, launcher and public server directory share this HTTP service. Use HTTPS on the public host. Public reads require no authentication; registrations use private Bearer credentials. This is the directory API, not the game server gameplay API.

Endpoints

MethodPathRequest and response
GET, HEAD/apiHTML documentation (this page).
GET/healthJSON: { ok, hostVersion }. Process health only.
GET/serversJSON: { Servers: [{ Id, Name, Host, Port }] }. Active listings; expired leases are omitted.
POST/reconnect-chat/sessionJSON Steam display profile { steamId, username }; returns a short-lived chat-only Bearer token. Display metadata does not authenticate game accounts.
GET, POST/reconnect-chat/messagesChat Bearer token required. GET ?after=ID returns recent lobby messages; POST { text, clientMessageId } sends up to 280 characters. History is temporary.
GET, HEAD/api/launcherCurrent launcher details and signed release. Version is the public label. When present, updateVersion is the build number used for update ordering and is also stored as version inside signedRelease.
GET/updates/latestSigned game release envelope: { payload, signature }. Verify the Ed25519 signature over the exact payload string with the trusted release public key.
GET/updates/changelogArray of game release notes: version, published, description, changelog. Newest first.
GET/updates/launcher-changelogArray of launcher release notes by public version, newest first. Revised builds share one entry.
GET/updates/files/{sha256}Binary file in the current signed download inventory, addressed by 64 lowercase hexadecimal SHA-256 characters. Verify its hash and signed size.
GET, HEAD/download/launcher.exeCurrent launcher binary; supports single byte ranges, If-Range and ETag.
GET, HEAD/download/launcher.sha256Plain-text checksum for the current launcher.
POST/servers/heartbeatRegistration Bearer key required (64 hex characters). JSON: Id (32–36 hex/hyphen characters), Name (1–80 characters), Port (1–65535), optional PublicHost. Returns LeaseSeconds and HeartbeatSeconds. Renew at the returned interval.
POST/servers/removeSame registration key and JSON { "Id": "your-server-id" }. Returns { "Removed": true }; ownership stays reserved.

Rate limits

Each group below shares a fixed-window allowance per client IP across all methods, URLs, query strings and file hashes in that group. Failed requests and HEAD requests count too. Groups have separate allowances, so downloads do not consume metadata or heartbeat requests.

GroupRequests per IP
Public JSON data120 / 60 seconds
Health checks60 / 60 seconds
Reconnect lobby chat600 / 60 seconds
Temporary support sessions120 / 60 seconds
API documentation60 / 60 seconds
Website pages and assets240 / 60 seconds
Downloads and checksum10,000 / 60 seconds
Registration and removal60 / 60 seconds
Unknown routes60 / 60 seconds

Responses report RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset (seconds until reset), and RateLimit-Policy (requests;w=window seconds). Registration responses may report additional quotas.

HTTP 429 returns JSON { "error": "…", "retryAfter": seconds } and a Retry-After header in seconds. Wait at least that long before retrying, use backoff and avoid simultaneous retries. Temporary concurrency restrictions use a one-second retry; listing caps require removing a listing or waiting for expiry. All counters reset when this single host process restarts. Rate limiting bounds requests, not total transferred bytes.

Examples

curl https://skiesadrift.com/servers
curl -i https://skiesadrift.com/api/launcher
curl https://skiesadrift.com/updates/latest

Errors and caching

Errors use JSON { "error": "message" }. Common statuses: 400 invalid request, 401 missing/invalid credentials, 403 denied, 404 missing route/release, 409 conflict, 413 oversized body, 416 invalid launcher range, 422 failed game endpoint verification, 429 limit reached, 503 unavailable or full capacity. JSON responses are no-store. Hash-addressed downloads require a current server check. Reuse local verified files when the signed inventory still lists them.

Forwarded client addresses are accepted only from explicitly configured trusted proxies, using the rightmost X-Forwarded-For address. Shared public IPs share allowances. No browser cross-origin access is enabled by this API.