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
| Method | Path | Request and response |
|---|---|---|
| GET, HEAD | /api | HTML documentation (this page). |
| GET | /health | JSON: { ok, hostVersion }. Process health only. |
| GET | /servers | JSON: { Servers: [{ Id, Name, Host, Port }] }. Active listings; expired leases are omitted. |
| POST | /reconnect-chat/session | JSON Steam display profile { steamId, username }; returns a short-lived chat-only Bearer token. Display metadata does not authenticate game accounts. |
| GET, POST | /reconnect-chat/messages | Chat Bearer token required. GET ?after=ID returns recent lobby messages; POST { text, clientMessageId } sends up to 280 characters. History is temporary. |
| GET, HEAD | /api/launcher | Current 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/latest | Signed game release envelope: { payload, signature }. Verify the Ed25519 signature over the exact payload string with the trusted release public key. |
| GET | /updates/changelog | Array of game release notes: version, published, description, changelog. Newest first. |
| GET | /updates/launcher-changelog | Array 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.exe | Current launcher binary; supports single byte ranges, If-Range and ETag. |
| GET, HEAD | /download/launcher.sha256 | Plain-text checksum for the current launcher. |
| POST | /servers/heartbeat | Registration 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/remove | Same 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.
| Group | Requests per IP |
|---|---|
| Public JSON data | 120 / 60 seconds |
| Health checks | 60 / 60 seconds |
| Reconnect lobby chat | 600 / 60 seconds |
| Temporary support sessions | 120 / 60 seconds |
| API documentation | 60 / 60 seconds |
| Website pages and assets | 240 / 60 seconds |
| Downloads and checksum | 10,000 / 60 seconds |
| Registration and removal | 60 / 60 seconds |
| Unknown routes | 60 / 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.