HTTP routes
"Auth" means Authorization: Bearer <access token> is required; a request without a valid token
answers 401 (unauthorized / token_expired) or 403 banned before anything else happens.
Every route can also answer 429 rate_limited, 500 internal and 503 unavailable; the tables
list the other answers. Schemas are written as JSON with ? marking optional fields.
Shared shapes#
Ack {}
Account {"id":int, "email":string|null, "email_verified":bool, "display_name":string|null,
"roles":[string], "identities":[LinkedIdentity], "created_at":ms}
LinkedIdentity {"provider":"steam" or an OpenID Connect provider's name, "subject":string}
TokenPair {"token_type":"Bearer", "access_token":string, "access_expires_at":ms,
"refresh_token":string, "refresh_expires_at":ms}
AuthSession {"account":Account, "tokens":TokenPair}
StorageObject {"collection":string, "key":string, "owner":int, "value":JSON, "version":int,
"write":"owner"|"server", "visibility":"private"|"public"|"friends", "updated_at":ms}
StorageObjectInfo {"collection":string, "key":string, "version":int, "write":"owner"|"server",
"visibility":"private"|"public"|"friends", "size_bytes":int, "updated_at":ms}
FileInfo {"id":int, "owner":int, "name":string, "content_type":string, "size":int,
"sha256":string, "visibility":"private"|"public"|"friends"|"shared",
"shared_with"?:[int], "metadata"?:JSON, "created_at":ms, "updated_at":ms}
ObjectAck {"collection":string, "key":string, "version":int, "updated_at":ms}
RoomInfo {"id":int, "kind":"room"|"dm"|"group"|"player", "key"?:string, "name"?:string,
"member_count"?:int, "max_members"?:int, "peer"?:int,
"visibility"?:"public"|"private", "owner"?:int,
"role"?:"owner"|"moderator"|"member"|"invited"|"banned"}
ChatMessage {"id":int, "room":int, "sender":int, "sender_name"?:string|null, "text":string,
"sent_at":ms, "nonce"?:string, "edited_at"?:ms}
Page<T> {"items":[T], "next_cursor"?:string}
RoomInfo.kind:room(public),dm(direct messages, withpeer= the other user),group(members only),player(created by a player; withvisibility,ownerand the caller'srole).member_countcounts users online in the room now;max_membersis the cap in connections.ChatMessage.edited_at: present when the text was edited;textis the latest text.StorageObject.write:owner(the player may write it) orserver(server-locked: player writes get 403).
Server#
| Method | Path | Auth | Request | Answer |
|---|---|---|---|---|
| GET | /v1/info |
no | – | {"protocol":1,"min_protocol":1,"modules":[string]} |
| GET | /healthz |
no | – | {"status":"ok"} |
| GET | /readyz |
no | – | {"status":"ready"}; 503 when not ready |
| GET | /v1/openapi.json |
no | – | the OpenAPI document (when enabled) |
| GET | /v1/asyncapi.json |
no | – | the AsyncAPI document (when enabled) |
| GET (upgrade) | /v1/ws |
handshake header or first message | – | the WebSocket |
Auth#
POST /v1/auth/register#
Create an account with email and password; it is logged in at once.
- Auth: no.
- Body:
{"email":string, "password":string, "display_name"?:string}. - 200:
AuthSession. A verification mail is sent. - Errors: 403
forbidden(registration closed, or refused by a server rule); 409email_taken; 422validation_failed(details per field); 429rate_limited.
POST /v1/auth/login#
- Auth: no.
- Body:
{"email":string, "password":string}. - 200:
AuthSession. - Errors: 401
invalid_credentials; 403banned(detailsuntil),email_not_verified, or a server rule's refusal; 429rate_limited(too many attempts from this address or for this account); 503unavailable(password hashing is saturated: retry shortly).
POST /v1/auth/steam#
- Auth: no; optional Bearer of a recent login to link Steam to that account.
- Body:
{"ticket_hex":string, "identity":string}(the ticket hex-encoded, at most 8192 characters; the identity string the ticket was requested for). - 200:
AuthSession. - Errors: 401
steam_auth_failed, or the Bearer token sent istoken_expired/unauthorized; 403banned, a refused borrowed copy, orreauthentication_required(linking needs a login younger than 10 minutes); 404 Steam login is not enabled on this server; 409conflict(the Steam account is linked to another account, or this account already has one).
POST /v1/auth/oauth/{provider}#
- Auth: no; optional Bearer of a recent login to link the provider account to that account.
- Body:
{"id_token":string, "nonce":string}(the provider's ID token as a compact JWT, at most 16 KiB; the nonce of the sign-in, 1–256 printable ASCII characters; servers configured without required nonces accept a body withoutnonce). - 200:
AuthSession. - Errors: 401
oauth_failed(the token was refused), or the Bearer token sent istoken_expired/unauthorized; 403banned,reauthentication_required(linking needs a login younger than 10 minutes), or refused by a server rule; 404 no such provider on this server; 409conflict(the provider account is linked to another account, or this account already has one of this provider); 422validation_failed(not a compact JWT, a bad nonce); 429rate_limited; 503unavailable(the provider's keys cannot be fetched).
POST /v1/auth/refresh#
- Auth: no.
- Body:
{"refresh_token":string}. - 200:
TokenPair(a new pair; the old refresh token is used up). - Errors: 401
unauthorized(invalid, expired or revoked) orrefresh_token_reused(the session was revoked); 403banned.
POST /v1/auth/logout#
Revoke this session, or every session of the account.
- Auth: the Bearer token or
refresh_tokenin the body. - Body:
{"everywhere"?:bool, "refresh_token"?:string}(send{}for "this session, by Bearer"). - 200:
{}. - Errors: 401
unauthorized(neither a valid access token nor a valid refresh token).
POST /v1/auth/email/verify#
- Auth: no.
- Body:
{"token":string}(the one-time token from the mail). - 200:
{}. - Errors: 400
invalid_token.
POST /v1/auth/email/resend#
Send the verification mail again (nothing happens when the address is confirmed already).
- Auth: yes. No body.
- 200:
{}. - Errors: 401; 429
rate_limited.
POST /v1/auth/password/forgot#
- Auth: no.
- Body:
{"email":string}. - 200:
{}, always the same whether or not the address has an account (a mail is sent if it does). - Errors: 429
rate_limited.
POST /v1/auth/password/reset#
- Auth: no.
- Body:
{"token":string, "new_password":string}. - 200:
{}. Every session of the account is revoked. - Errors: 400
invalid_token; 422validation_failed.
Account#
GET /v1/account#
- Auth: yes.
- 200:
Account.
PATCH /v1/account#
Change the caller's account (absent fields stay).
- Auth: yes.
- Body:
{"display_name"?:string}. - 200: the changed
Account. - Errors: 422
validation_failed.
POST /v1/account/password#
Change the password, knowing the current one; the other sessions are revoked (this one stays).
- Auth: yes.
- Body:
{"current_password":string, "new_password":string}. - 200:
{}. - Errors: 401
invalid_credentials(the current password is wrong); 422validation_failed.
DELETE /v1/account/identities/{provider}#
Unlink a login provider (steam, or an OpenID Connect provider's name such as google) from the
caller's account.
- Auth: yes, with a login younger than 10 minutes.
- 200:
{}. - Errors: 403
reauthentication_required(log in again first); 404not_found(no such linked provider); 409conflict(it is the account's only way to log in).
Storage#
The /v1/storage routes address the caller's own objects; /v1/users/{user}/storage reads another
player's objects the caller may read. See Storage flows.
GET /v1/storage/{collection}#
A page of the caller's objects in a collection, without values, ordered by key.
- Auth: yes.
- Query:
cursor?,limit? (1–100, default 50). - 200:
Page<StorageObjectInfo>. - Errors: 400
bad_request(an invalid name or cursor).
GET /v1/storage/{collection}/{key}#
- Auth: yes.
- 200:
StorageObject; headerETag: "<version>". - Errors: 404
not_found.
PUT /v1/storage/{collection}/{key}#
Write one object. Without a condition the last write wins.
- Auth: yes.
- Body:
{"value":JSON, "if_version"?:int, "visibility"?:"private"|"public"|"friends"}.if_version: Nwrites only over version N;if_version: 0writes only if the object does not exist.visibilitysets who may read it (absent: unchanged; a new object isprivate;friendsneeds the friends module). - Headers (alternative to
if_version):If-Match: "N",If-None-Match: *. - 200:
ObjectAck(with the newversion); headerETag: "<version>". - Errors: 400
bad_request(an invalid name, a malformed condition header, or a header that disagrees withif_version); 403forbidden(the object or its collection is written by the server only),quota_exceeded(too many objects or bytes), or a server rule's refusal; 409version_conflict(details{"current_version":N}); 413payload_too_large; 422validation_failed(the value is too large); 429rate_limited(detailsretry_after_ms).
DELETE /v1/storage/{collection}/{key}#
Deleting an object that does not exist answers {} too, unless a version is named.
- Auth: yes.
- Query:
if_version? (only if the stored version is this one). Header alternative:If-Match: "N". - 200:
{}. - Errors: 403
forbidden(server-locked) or a server rule's refusal; 409version_conflict; 429rate_limited.
POST /v1/storage/_batch/get#
Read several objects at once.
- Auth: yes.
- Body:
{"objects":[{"collection":string, "key":string}]}(1–16 distinct objects). - 200:
{"objects":[StorageObject]}; missing objects are simply absent. - Errors: 413
payload_too_large(more than 4 MiB of values: read fewer per batch); 422validation_failed.
POST /v1/storage/_batch/put#
Write several objects in one transaction: all or nothing.
- Auth: yes.
- Body:
{"objects":[{"collection":string, "key":string, "value":JSON, "if_version"?:int, "visibility"?:string}]}(1–16 distinct objects, at most 4 MiB of values together). - 200:
{"objects":[ObjectAck]}, in request order. - Errors: 403
forbidden/quota_exceeded/ a server rule's refusal (details:indexof the failing item); 409version_conflict(details:indexandcurrent_versionof the first failing item); 422validation_failed; 429rate_limited(a batch counts as one write).
GET /v1/users/{user}/storage/{collection}#
A page of another player's objects in a collection that the caller may read (public ones; friends
ones for the owner's friends; every one for the owner), without values, ordered by key.
- Auth: yes.
- Query:
cursor?,limit? (1–100, default 50). - 200:
Page<StorageObjectInfo>(an unknown player: an empty page). - Errors: 400
bad_request(an invalid name or cursor).
GET /v1/users/{user}/storage/{collection}/{key}#
- Auth: yes.
- 200:
StorageObject; headerETag: "<version>". - Errors: 404
not_found(no such object, or the caller may not read it).
Files#
Players' binary files. Only the owner changes or deletes a file; who else reads it follows its
visibility: private (nobody), public (every logged-in player), friends (the owner's friends;
servers with the friends module), shared (the accounts in shared_with). A player who may not
read a file gets 404 for it.
POST /v1/files#
Upload a file: a multipart/form-data body with up to two parts, in this order:
| Part | Content |
|---|---|
meta (optional) |
application/json: {"name"?:string, "content_type"?:string, "visibility"?:string, "shared_with"?:[int], "metadata"?:JSON, "sha256"?:string} |
file |
the bytes; its filename and Content-Type are the defaults for name and content_type |
- Auth: yes.
- Names: 1–255 bytes, no
/or\, no control or invisible characters (default: the file part's file name without its folders, elsefile). Content types: a plaintype/subtype(defaultapplication/octet-stream).sha256: the lower-case hex SHA-256 the bytes must have. - 200:
FileInfo(with the server'ssha256of the bytes). - Errors: 400
bad_request(not multipart, an unknown or repeated part, a part afterfile, a body that ended early); 403quota_exceeded(too many files or bytes) or a server rule's refusal; 413payload_too_large(the file is larger than the server's limit); 422validation_failed(nofilepart, a bad name, content type, visibility, share list or metadata, an account inshared_withthat does not exist, asha256that does not match); 429rate_limited. - Nothing is kept of a refused upload. An upload is timed by its data, not by the request time
limit: it fails with 503
unavailablewhen no data arrives for 30 s or the upload takes longer than an hour (the server's defaults), so a slow connection can send a large file.
GET /v1/files#
- Auth: yes.
- Query:
owner? (another player: the files the caller may read; default: the caller's own),cursor?,limit? (1–100, default 50). - 200:
Page<FileInfo>, newest first. - Errors: 400
bad_request(an invalid cursor).
GET /v1/files/usage#
- Auth: yes.
- 200:
{"files":int, "bytes":int, "max_files":int, "max_bytes":int, "max_file_bytes":int}.
GET /v1/files/{file}#
- Auth: yes.
- 200:
FileInfo(shared_withfor the owner of asharedfile). - Errors: 404
not_found.
GET /v1/files/{file}/content#
The bytes, as an attachment.
- Auth: yes.
- Headers:
If-None-Match? (theETagfrom before: 304 when unchanged). - 200: the bytes; headers
Content-Type(as stored),Content-Length,ETag: "<sha256>",Content-Disposition: attachment,X-Content-Type-Options: nosniff. - Errors: 404
not_found.
PATCH /v1/files/{file}#
- Auth: yes (the owner).
- Body:
{"name"?:string, "visibility"?:string, "shared_with"?:[int], "metadata"?:JSON}(absent fields stay;"metadata":nullclears it;shared_withreplaces the list and goes withshared; leavingshareddrops the list). A server rule may refuse the change or keep a setting (e.g. a file stays private until the game reviewed it): the answer shows the result. - 200:
FileInfo. - Errors: 403
forbidden(a reader who is not the owner, or a server rule); 404not_found; 422validation_failed.
DELETE /v1/files/{file}#
- Auth: yes (the owner).
- 200:
{}(the file and its bytes are gone). - Errors: 403
forbidden(a reader who is not the owner); 404not_found.
Chat#
Joining, sending and live messages use the WebSocket; these HTTP routes list rooms, read history, open direct messages, edit and delete messages, keep read markers and unread counts, and manage rooms created by players. See Chat flows.
GET /v1/chat/rooms#
The public rooms, with online counts and caps.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<RoomInfo>.
GET /v1/chat/rooms/{room}/messages#
A page of a room's history, newest first.
- Auth: yes. Public rooms: any player; group, player and DM rooms: their members (player rooms
also players with
chat.moderate). - Query:
cursor? (older messages),limit?. - 200:
Page<ChatMessage>. - Errors: 403
not_a_member; 404not_found.
DELETE /v1/chat/rooms/{room}/messages/{message}#
Delete a message: its sender, or a moderator (roles admin / moderator by default). The room
gets a chat.deleted push and the message leaves the history.
- Auth: yes.
- 200:
{}. - Errors: 403
forbidden(neither its sender nor a moderator),not_a_member(its sender left the group or player room, or was removed from it); 404not_found(no such message, or deleted already).
In a player room, its owner and moderators may delete any message of the room too.
PATCH /v1/chat/rooms/{room}/messages/{message}#
Edit a message: its sender within 900 s of sending (server setting; the edit counts on the send
rate), or a player with the permission chat.moderate (any message; recorded in the audit log). The
text follows the rules of a new message and passes the server's message rules again. The room gets a
chat.edited push.
- Auth: yes.
- Body:
{"text":string}. - 200:
ChatMessagewithedited_at. - Errors: 403
forbidden(not its sender, the edit window is over, editing turned off, or a server rule),not_a_member; 404not_found(no such message, or deleted); 422validation_failed; 429rate_limited.
PUT /v1/chat/rooms/{room}/read#
Store the caller's read marker: "read up to this message". It only moves forward (an older message
leaves it where it is). In DM, group and player rooms the room gets a chat.read push (at most one
per user, room and 2 s; the newest marker wins); public rooms keep the marker for unread counts only.
- Auth: yes (a player who may read the room).
- Body:
{"message":int}(a message of this room). - 200:
{}. - Errors: 403
not_a_member; 404not_found(no such room, or the message is not in it); 429rate_limited.
GET /v1/chat/rooms/{room}/receipts#
The read markers of a DM, group or player room, the newest 200 first.
- Auth: yes (members).
- 200:
{"room":int, "receipts":[{"room":int, "user":int, "message":int, "read_at":ms}]}. - Errors: 400
bad_request(a public room); 403not_a_member; 404not_found.
POST /v1/chat/unread#
The caller's unread counts of up to 100 rooms. A message counts when it is newer than the caller's read marker, not the caller's own, not deleted and inside the history retention; a count stops at 1000 ("1000 or more"). Rooms the caller cannot read, or that do not exist, are left out.
- Auth: yes.
- Body:
{"rooms":[int]}(1–100). - 200:
{"rooms":[{"room":int, "unread":int, "last_read"?:int}]}(in the order asked). - Errors: 422
validation_failed.
Rooms created by players#
A player creates a room and owns it. Public rooms are listed and any player who is not banned
may join; private rooms take invited players only. Membership is stored: it outlives
connections. The owner renames the room, changes its visibility, names moderators, hands the room
on and deletes it; moderators rename it, invite players, kick members and invited players, and
delete messages in it. A kicked player is banned from the room until invited again. When the
owner leaves, the oldest moderator (else the oldest member) owns the room; when the last member
leaves, the room is deleted. Every change is a chat.room push to the members and invited players
(Chat kinds); with the notifications module an invited player also gets a
chat.invite notification (data: {"room":int, "name":string}). Players with the permission
chat.moderate act as the owner of every player room: they open, read and join private rooms too
(also after a ban). Limits (server settings): 10 rooms owned per player (counted when a player
creates a room or is handed one; a player who becomes the owner because the owner left is not
refused), 100 members plus open invitations per room, 5 new rooms per player and hour, 20
invitations per player and 10 minutes.
To chat in a player room, join it with chat.join on the WebSocket (that also makes the caller a
member of a public room, or accepts an invitation).
POST /v1/chat/rooms#
Create a player room.
- Auth: yes.
- Body:
{"name":string, "visibility"?:"public"|"private"}(defaultprivate). - 200:
RoomInfo(kind: "player",owner,role: "owner"). - Errors: 403
quota_exceeded(the caller owns 10 rooms),forbidden(player rooms turned off, or a server rule); 422validation_failed; 429rate_limited.
GET /v1/chat/rooms/mine#
The caller's player rooms and invitations, oldest membership first, each with the caller's role.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<RoomInfo>.
GET /v1/chat/rooms/public#
The public player rooms, oldest first (the server's own rooms: GET /v1/chat/rooms).
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<RoomInfo>.
GET /v1/chat/rooms/{room}#
One room as the caller sees it: public rooms and public player rooms for any player; DM, group and
private player rooms for their members (and invited players; private player rooms also for players
with chat.moderate).
- Auth: yes.
- 200:
RoomInfo. - Errors: 403
not_a_member; 404not_found.
PATCH /v1/chat/rooms/{room}#
Rename a player room (owner, moderators) or change its visibility (owner); absent fields stay.
- Auth: yes.
- Body:
{"name"?:string, "visibility"?:"public"|"private"}(at least one). - 200:
RoomInfo. - Errors: 400
bad_request(not a player room); 403not_a_member/forbidden; 404not_found; 422validation_failed.
DELETE /v1/chat/rooms/{room}#
Delete a player room (its owner): its messages, members and read markers go; every member and invited
player gets chat.room with change: "deleted".
- Auth: yes.
- 200:
{}. - Errors: 400
bad_request(not a player room); 403not_a_member/forbidden(not the owner); 404not_found.
POST /v1/chat/rooms/{room}/join#
Become a member of a player room: a public room, or accept an invitation (players with
chat.moderate: any player room).
- Auth: yes.
- 200:
RoomInfo(withrole). - Errors: 400
bad_request(not a player room); 403not_a_member(private, not invited),forbidden(banned, or a server rule),quota_exceeded(the room is full); 404not_found.
POST /v1/chat/rooms/{room}/leave#
Stop being a member of a player room, or decline an invitation (a ban stays).
- Auth: yes.
- 200:
{}(also when the caller was no member). - Errors: 400
bad_request(not a player room); 404not_found.
GET /v1/chat/rooms/{room}/members#
The rows of a player room, oldest first: members and invited players; the owner and moderators also see bans.
- Auth: yes (members and invited players).
- Query:
cursor?,limit?. - 200:
Page<{"user":int, "name"?:string, "role":"owner"|"moderator"|"member"|"invited"|"banned", "since":ms}>. - Errors: 400
bad_request(not a player room); 403not_a_member; 404not_found.
POST /v1/chat/rooms/{room}/invites#
Invite a player (owner, moderators). An invitation lifts a ban; inviting a member or an invited player changes nothing. A player who blocked the caller (friends module) is not invited.
- Auth: yes.
- Body:
{"user":int}. - 200:
{}. - Errors: 400
bad_request(not a player room, or yourself); 403not_a_member/forbidden(not the owner or a moderator, the player blocked the caller, or a server rule),quota_exceeded(the room is full); 404not_found(no such room or account); 429rate_limited(20 invitations per 10 minutes).
DELETE /v1/chat/rooms/{room}/members/{user}#
Kick a player (owner: anyone; moderators: members and invited players): banned until invited again; its connections leave the room at once. Withdraws an invitation the same way.
- Auth: yes.
- 200:
{}(also when the player was banned already). - Errors: 400
bad_request(not a player room, or yourself); 403not_a_member/forbidden; 404not_found(the player is not in the room).
PUT /v1/chat/rooms/{room}/members/{user}/role#
Make a member a moderator or a member again (the owner).
- Auth: yes.
- Body:
{"role":"moderator"|"member"}. - 200:
{}. - Errors: 400
bad_request(the owner's own role: hand the room on instead); 403not_a_member/forbidden; 404not_found(no such member); 422validation_failed(another role).
POST /v1/chat/rooms/{room}/owner#
Hand the room to a member (the owner); the old owner becomes a moderator.
- Auth: yes.
- Body:
{"user":int}. - 200:
{}. - Errors: 400
bad_request(yourself); 403not_a_member/forbidden,quota_exceeded(the new owner owns 10 rooms); 404not_found(no such account, or not a member).
POST /v1/chat/dm#
Open (or find) the direct-message room with another user.
- Auth: yes.
- Body:
{"user":int}. - 200:
RoomInfo(kind: "dm", withpeer). - Errors: 400
bad_request(yourself); 403 a server rule's refusal (for example a block); 404not_found(no such account); 429rate_limited(detailsretry_after_ms).
GET /v1/chat/dms#
The caller's direct-message rooms, newest activity first.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<RoomInfo>(each withpeer).
Leaderboards#
The server configures its boards; players submit scores and read them. A board has a key
(highscore, 1–64 characters of a-z 0-9 _ - .), a mode (what a new score does to the
player's stored one: best keeps the better, latest replaces it, sum adds to it), an
order (desc: higher is better; asc: lower is better, e.g. race times) and a period
(all_time, or daily / weekly: a fresh board every day at 00:00 UTC / every Monday at 00:00
UTC). Finished periods stay readable for a while (the server keeps 8 by default): every read takes
at, any time inside the period to show.
Ranks start at 1 and are unique: equal scores rank by who reached the score first, then by the
lower account id. A score is any 64-bit integer except the smallest; a sum stops at the largest
and the smallest-but-one.
BoardInfo {"key":string, "name"?:string, "mode":"best"|"latest"|"sum", "order":"desc"|"asc",
"period":"all_time"|"daily"|"weekly", "period_start"?:ms, "period_end"?:ms, "client_submit":bool}
LeaderboardEntry {"rank":int, "user":int, "name"?:string, "score":int, "metadata"?:JSON, "achieved_at":ms}
LeaderboardPage {"board":string, "period_start"?:ms, "period_end"?:ms, "items":[LeaderboardEntry], "next_cursor"?:string}
period_start / period_end are absent on all-time boards.
GET /v1/leaderboards#
- Auth: yes.
- 200:
{"boards":[BoardInfo]}, ordered by key, with the current period of each.
GET /v1/leaderboards/{board}#
A page of the board, best first.
- Auth: yes.
- Query:
cursor?,limit? (1–100, default 50),at? (ms; default now). - 200:
LeaderboardPage. - Errors: 400
bad_request(an invalid key or cursor); 404not_found(no such board).
POST /v1/leaderboards/{board}/scores#
Submit a score for the caller.
- Auth: yes.
- Body:
{"score":int, "metadata"?:JSON}(metadata: at most 1 KiB of JSON, stored with the score it belongs to: on abestboard only when the score improves). - 200:
{"board":string, "period_start"?:ms, "score":int, "submitted":int, "changed":bool, "rank":int}:scoreis the stored score now,submittedwhat was submitted (after the server's rules),changedwhether the stored score changed (false: a better score was kept). - A
sumboard adds every submission it accepts: a request sent again (a retry after a timeout) adds again. Such boards are usually written by the server (client_submit: false). - Errors: 403
forbidden(the board takes scores from the server only:client_submit: false; or a server rule's refusal); 404not_found; 422validation_failed; 429rate_limited(detailsretry_after_ms).
GET /v1/leaderboards/{board}/me#
- Auth: yes.
- Query:
at?. - 200:
{"board":string, "period_start"?:ms, "period_end"?:ms, "entry"?:LeaderboardEntry, "total":int}(entryabsent when the caller has no score in the period;total: players with a score). - Errors: 404
not_found.
GET /v1/leaderboards/{board}/around#
The entries around the caller, the caller included, best first.
- Auth: yes.
- Query:
above?,below? (0–50 each, default 5),at?. - 200:
LeaderboardPage(nonext_cursor; emptyitemswhen the caller has no score in the period). - Errors: 404
not_found.
Notifications#
Messages the server stores for one player (a reward, an invitation, a system notice): pushed live
as notify.new to the player's open connections and kept until the player
deletes them or they pass the server's retention (30 days by default). A player keeps at most 200
(a newer one removes the oldest). Only the server creates them; players read, mark and delete their
own. Every route has a WebSocket twin (notify.*) with the same answer.
Notification {"id":int, "kind":string, "text"?:string, "data"?:JSON, "sender"?:int, "created_at":ms, "read":bool}
kind is the game's own (reward, invite.match); sender is the account that caused it (absent
for system notices, and once that account is deleted).
GET /v1/notifications#
The caller's notifications, newest first.
- Auth: yes.
- Query:
cursor?,limit? (1–100, default 50),unread_only? (true: only the unread ones). - 200:
Page<Notification>. - Errors: 400
bad_request(an invalid cursor).
GET /v1/notifications/count#
- Auth: yes.
- 200:
{"unread":int, "total":int}.
POST /v1/notifications/mark#
Mark notifications read or unread. Ids of other players, or already in that state, are skipped.
- Auth: yes.
- Body:
{"ids":[int], "read":bool}(1–100 distinct ids) or{"all":true, "read":bool}. - 200:
{"changed":int, "unread":int}(how many changed; the caller's unread count now). - Errors: 422
validation_failed.
DELETE /v1/notifications/{id}#
- Auth: yes.
- 200:
{}(also when it does not exist, or is not the caller's: nothing is deleted then). - Errors: 400
bad_request(the id is not a number).
Friends#
Friends by account. A player adds another by account id, by display name or by friend code; the other accepts or declines, the sender may cancel; either ends the friendship. When two players ask each other, they are friends at once. A player blocks anyone: a block ends a friendship and every open request between the two, and the blocked player's requests answer 403.
Every player has a friend code (made on first use): 8 characters of 2-9 and A-Z without O
and I (K7M2Q9XD). Players type it in any case, with spaces or dashes. A new code replaces the
old one. Names are display names, matched exactly (after trimming); display names are not
unique, so a name several players have answers 409 and the player uses the friend code instead.
Online state (friends only): a player is online while it has an open WebSocket connection, and
for 90 s after its last heartbeat (POST /v1/friends/presence: clients without a WebSocket send one
every minute or so). Friends get friends.presence when a player comes online or
goes offline. With the notifications module on the server, a request also sends the other player a
friends.request notification and an acceptance sends friends.accepted (the notification's
sender is the acting player).
Steam IDs (servers with Steam login): a player who linked a Steam account sends a list of Steam
IDs, e.g. its Steam friends list, and gets back the ones that belong to accounts here
(POST /v1/friends/steam). Found are accounts with that Steam account
linked; never the caller, banned accounts, players with a block between them and the caller (either
direction), or players who turned steam_findable off (PUT /v1/friends/settings).
Steam-linked players are findable until they turn it off. A hidden player and a Steam ID without an
account look the same: absent from the answer.
FriendEntry {"user":int, "name"?:string, "state":"friend"|"sent"|"received"|"blocked", "since":ms,
"online"?:bool, "last_seen"?:ms}
since is when the state began (the request, the friendship, the block); online and last_seen
are present for friends only.
GET /v1/friends#
The caller's friends, newest first, with their online state.
- Auth: yes.
- Query:
cursor?,limit? (1–100, default 50). - 200:
Page<FriendEntry>. - Errors: 400
bad_request(an invalid cursor).
DELETE /v1/friends/{user}#
End a friendship (both sides).
- Auth: yes.
- 200:
{}(also when there was none). - Errors: 404
not_found(no such account); 422validation_failed(the caller's own id).
GET /v1/friends/requests#
The caller's open requests, newest first.
- Auth: yes.
- Query:
direction? (received, the default, orsent),cursor?,limit?. - 200:
Page<FriendEntry>(statereceivedorsent). - Errors: 400
bad_request(an invalid cursor or direction).
POST /v1/friends/requests#
Send a friend request.
- Auth: yes.
- Body: exactly one of
{"user":int},{"name":string},{"code":string}. - 200:
FriendEntry: statesent, orfriendwhen that player had already asked the caller (a request sent before answers its entry again). - Errors: 403
forbidden(that player blocked the caller), 403quota_exceeded(the caller has 50 open requests, or that player has 50 received ones); 404not_found(no such account, name or code); 409conflict(several players have that name; or the caller blocked that player: unblock first); 422validation_failed(not exactly one of the three, or the caller's own account); 429rate_limited.
DELETE /v1/friends/requests/{user}#
Withdraw a request the caller sent.
- Auth: yes.
- 200:
{}(also when there was none). - Errors: 404
not_found(no such account).
POST /v1/friends/requests/{user}/accept#
Accept a request the caller received.
- Auth: yes.
- 200:
FriendEntry(statefriend; also when they were friends already). - Errors: 403
quota_exceeded(one of the two has 200 friends); 404not_found(no request from this player).
POST /v1/friends/requests/{user}/decline#
- Auth: yes.
- 200:
{}(also when there was no request). - Errors: 404
not_found(no such account).
GET /v1/friends/blocks#
The players the caller blocked, newest first.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<FriendEntry>(stateblocked).
PUT /v1/friends/blocks/{user}#
Block a player.
- Auth: yes.
- 200:
{}(also when it was blocked already). - Errors: 403
quota_exceeded(500 blocked players); 404not_found; 422validation_failed(the caller's own id).
DELETE /v1/friends/blocks/{user}#
Lift a block.
- Auth: yes.
- 200:
{}(also when there was none). - Errors: 404
not_found.
GET /v1/friends/code#
- Auth: yes.
- 200:
{"code":string}.
POST /v1/friends/code#
A new friend code; the old one stops working.
- Auth: yes.
- 200:
{"code":string}. - Errors: 429
rate_limited(heartbeats, code resets and settings changes: 30 per 60 s together).
POST /v1/friends/presence#
The heartbeat of a client without a WebSocket connection: the caller counts as online for 90 s.
- Auth: yes.
- 200:
{}. - Errors: 429
rate_limited(heartbeats, code resets and settings changes: 30 per 60 s together).
POST /v1/friends/steam#
Which of these Steam IDs belong to accounts here. Steam IDs are SteamID64s of individual Steam accounts as decimal strings (a SteamID64 is larger than the integers a JSON number carries exactly).
- Auth: yes; the caller must have a Steam account linked.
- Body:
{"steam_ids":[string]}(at most 500; an empty list answers an empty list). - 200:
{"players":[SteamPlayer]}, in the order of the request, each account once:
text
SteamPlayer {"steam_id":string, "user":int, "name"?:string, "state"?:"friend"|"sent"|"received"}
steam_id is the Steam ID as sent; state is the caller's relation to that player (absent: none).
- Errors: 403 forbidden (the caller has no Steam account linked, or the server's own rule refused
it); 404 not_found (the server has no Steam login); 422 validation_failed (an entry is not the
SteamID64 of an individual Steam account in decimal digits, details name the entry as
steam_ids[3]; or more than 500); 429 rate_limited (3 lookups, then one every 5 minutes).
GET /v1/friends/settings#
The caller's friends settings.
- Auth: yes.
- 200:
{"steam_findable":bool}(trueuntil the player turns it off).
PUT /v1/friends/settings#
Change the caller's friends settings; fields left out keep their value.
- Auth: yes.
- Body:
{"steam_findable"?:bool}. - 200:
{"steam_findable":bool}(after the change). - Errors: 429
rate_limited(heartbeats, code resets and settings changes: 30 per 60 s together).
Groups#
Groups (guilds, clans). A player creates a group and owns it; others join by invitation (the owner and admins invite; the invited player accepts or declines) or directly when the group is open. Roles: one owner (every right; hands the group to a member with a transfer and becomes an admin), admins (change the group, invite, withdraw invitations, remove members) and members. The owner leaves only as the last member (the group is then deleted) or after a transfer.
Group names are 3–32 characters (no control or invisible characters), unique on the server without
regard to case. With the notifications module on the server, an invitation reaches the player as
a groups.invite notification and a removal as groups.kicked (data: {"group":int,
"name":string}, sender: the acting player). With the chat module, every group has a chat room
for its members (chat_room: join it with chat.join); joining the group adds the player, leaving
or a removal takes them out at once, and deleting the group deletes the room with its messages.
GroupInfo {"id":int, "name":string, "description"?:string, "open":bool, "metadata"?:JSON, "owner"?:int,
"members":int, "max_members":int, "chat_room"?:int, "created_at":ms, "role"?:"owner"|"admin"|"member"}
GroupMember {"user":int, "name"?:string, "role":"owner"|"admin"|"member", "joined_at":ms}
GroupInvite {"group":GroupInfo, "inviter"?:int, "created_at":ms}
role is the caller's, present when the caller is a member; owner is absent when the owner's
account was deleted.
GET /v1/groups#
The groups by name.
- Auth: yes.
- Query:
query? (the start of the name, any case, at most 32 characters),cursor?,limit? (1–100, default 50). - 200:
Page<GroupInfo>. - Errors: 422
validation_failed(the query is too long).
POST /v1/groups#
Create a group; the caller is its owner.
- Auth: yes.
- Body:
{"name":string, "description"?:string, "open"?:bool, "metadata"?:JSON}(description: at most 500 characters; metadata: at most 2 KiB of JSON;openfalse by default). - 200:
GroupInfo(role:owner). - Errors: 403
quota_exceeded(the caller is in 10 groups), 403forbidden(a server rule); 409conflict(the name is taken); 422validation_failed; 429rate_limited.
GET /v1/groups/mine#
- Auth: yes.
- 200:
{"groups":[GroupInfo]}: the caller's groups with its role, oldest membership first.
GET /v1/groups/invites#
The caller's invitations, newest first.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<GroupInvite>.
GET /v1/groups/{group}#
- Auth: yes.
- 200:
GroupInfo. - Errors: 404
not_found.
PATCH /v1/groups/{group}#
Change a group (the owner or an admin). Absent fields stay; "description":"" removes the
description, "metadata":null the metadata.
- Auth: yes.
- Body:
{"name"?:string, "description"?:string, "open"?:bool, "metadata"?:JSON}. - 200:
GroupInfo. - Errors: 403
not_a_member/forbidden(not the owner or an admin, or a server rule); 404not_found; 409conflict(the name is taken); 422validation_failed.
DELETE /v1/groups/{group}#
Delete a group (the owner): its members, invitations and chat room go.
- Auth: yes.
- 200:
{}. - Errors: 403
not_a_member/forbidden; 404not_found.
GET /v1/groups/{group}/members#
The members in the order they joined.
- Auth: yes.
- Query:
cursor?,limit?. - 200:
Page<GroupMember>. - Errors: 404
not_found.
POST /v1/groups/{group}/join#
Join an open group, or one that invited the caller (the invitation is used).
- Auth: yes.
- 200:
GroupInfo(also when the caller was a member already). - Errors: 403
forbidden(invitation only, or a server rule), 403quota_exceeded(the group has 100 members, or the caller is in 10 groups); 404not_found.
POST /v1/groups/{group}/leave#
- Auth: yes.
- 200:
{}(also when the caller was no member). The owner as the last member: the group is deleted. - Errors: 404
not_found; 409conflict(the owner of a group with other members: transfer first).
POST /v1/groups/{group}/invites#
Invite a player (the owner or an admin). A player who blocked the caller (friends module) is not invited.
- Auth: yes.
- Body:
{"user":int}. - 200:
{}(also when the player was invited already: no second notification). - Errors: 403
not_a_member/forbidden(not the owner or an admin, the player blocked the caller, or a server rule), 403quota_exceeded(50 open invitations); 404not_found(no such group or account); 409conflict(a member already); 422validation_failed(the caller's own id); 429rate_limited(20 invitations per 10 minutes).
POST /v1/groups/{group}/invites/accept#
Accept an invitation: join the group.
- Auth: yes.
- 200:
GroupInfo. - Errors: 403
quota_exceeded/forbidden(as for join); 404not_found(no such group, or no invitation).
POST /v1/groups/{group}/invites/decline#
- Auth: yes.
- 200:
{}(also when there was no invitation).
DELETE /v1/groups/{group}/invites/{user}#
Withdraw an invitation (the owner or an admin).
- Auth: yes.
- 200:
{}(also when there was none). - Errors: 403
not_a_member/forbidden; 404not_found.
DELETE /v1/groups/{group}/members/{user}#
Remove a member: the owner removes anyone, admins remove members.
- Auth: yes.
- 200:
{}(also when the player was no member). - Errors: 403
not_a_member/forbidden; 404not_found; 422validation_failed(the caller's own id: leave instead).
PUT /v1/groups/{group}/members/{user}/role#
Give a member the role admin or member (the owner).
- Auth: yes.
- Body:
{"role":"admin"|"member"}. - 200:
{}. - Errors: 403
not_a_member/forbidden; 404not_found(no such group or member); 422validation_failed(another role, or the owner's own id).
POST /v1/groups/{group}/transfer#
Hand the group to a member (the owner); the old owner becomes an admin.
- Auth: yes.
- Body:
{"user":int}. - 200:
{}. - Errors: 403
not_a_member/forbidden; 404not_found(no such group or member); 422validation_failed(the owner's own id).
Lobbies#
Lobbies bring players together before a match; the server only coordinates (the game's own
connection between the players stays the game's). A player creates a lobby and hosts it; other
players join; every member has a ready flag; the host sets the lobby's metadata (text keys
and values the game chooses, e.g. "mode":"ranked"), its size, its visibility and its state, kicks
members and hands the lobby to another member. A leaving host passes the lobby to the member who
joined first; the last member's leaving removes it. A player is in one lobby at a time (the
server's default). With leave_on_disconnect (on by default), a player whose last WebSocket
connection closes leaves its lobbies after 30 seconds unless it reconnects.
- Visibility:
publiclobbies are listed by the search and joined by id or code;privateones only with the join code;friendsones (servers with thefriendsmodule) with the code, or by id by a friend of the host, and listed in the friends' search. With thefriendsmodule, a player the host blocked cannot join. - State:
open(players join),in_game(no one joins; the members stay; back toopenresets every ready flag),closed(the lobby is removed; its members get a lastlobby.changedwith stateclosed). - Join codes: every lobby has one, shown to its members: 8 characters of
23456789ABCDEFGHJKLMNPQRSTUVWXYZ(no0,O,1,I), unique among the server's lobbies, valid as long as the lobby exists; the host replaces it (the old one stops working). Case, spaces and dashes do not matter when typed (k7m2-q9xd). A code is also a number below 2^40 (code_number): each character's place in the alphabet above is 5 bits, the first character the highest (22222223= 1,K7M2Q9XD= 590122524587); it fits a 64-bit integer wherever a platform carries a number instead of a text. - Metadata: keys of 1–64 bytes of ASCII letters, digits,
_ . : -; values of at most 256 characters (no control or invisible characters); at most 32 keys and 4 KiB per lobby. - Pushes (WebSocket, to every member):
lobby.memberandlobby.changed(Lobby kinds). With thechatmodule, every lobby has a chat room for its members (chat_room), joined and left with the lobby and deleted with it. - Host actions (change, new code, hand over, remove a member): a player who is not a member of
the lobby gets 404
not_found, a member who is not the host 403forbidden.
LobbyInfo {"id":int, "visibility":"public"|"private"|"friends", "state":"open"|"in_game"|"closed",
"host"?:int, "max_players":int, "members":int, "metadata"?:{string:string}, "created_at":ms,
"code"?:string, "code_number"?:int, "chat_room"?:int, "players"?:[LobbyMember]}
LobbyMember {"user":int, "name"?:string, "ready":bool, "joined_at":ms}
code, code_number and chat_room are shown to members only; players (in the order they
joined) is filled in the answers about one lobby and absent in search results.
POST /v1/lobbies#
Create a lobby; the caller hosts it.
- Auth: yes.
- Body:
{"max_players":int, "visibility"?:"public"|"private"|"friends", "metadata"?:{string:string}}(max_players: 1 to the server's limit, 64 by default;publicby default). - 200:
LobbyInfo(with its code and members). - Errors: 403
quota_exceeded(the caller is in a lobby already), 403forbidden(a server rule); 422validation_failed(the size, the visibility,friendswithout the friends module, the metadata); 429rate_limited.
GET /v1/lobbies/mine#
- Auth: yes.
- 200:
{"lobbies":[LobbyInfo]}: the caller's lobbies with their members, oldest membership first.
POST /v1/lobbies/search#
Open lobbies, newest first. Every filter must match exactly; full lobbies are left out unless
include_full.
- Auth: yes.
- Body:
{"filters"?:[{"key":string, "value":string}], "friends"?:bool, "include_full"?:bool, "cursor"?:string, "limit"?:int}(at most 8 filters;friends: true: the lobbies the caller's friends host, public and friends-only, instead of every public lobby). - 200:
Page<LobbyInfo>(without codes and member lists). - Errors: 400
bad_request(an invalid cursor); 422validation_failed(the filters,friendswithout the friends module).
POST /v1/lobbies/join#
Join with a join code (any visibility).
- Auth: yes.
- Body:
{"code":string}. - 200:
LobbyInfo(also when the caller was a member already). - Errors: 403
quota_exceeded(the lobby is full, or the caller is in a lobby already), 403forbidden(the host blocked the caller, a server rule); 404not_found(no lobby has this code); 409conflict(the lobby is not open); 422validation_failed(not a code); 429rate_limited(too many join attempts, or 20 codes per hour that matched no lobby: then every code answers 429 until the hour frees one).
GET /v1/lobbies/{lobby}#
- Auth: yes.
- 200:
LobbyInfowith its members. - Errors: 404
not_found(no such lobby, or one the caller may not see: a private one it is not in, a friends-only one of a stranger).
PATCH /v1/lobbies/{lobby}#
Change a lobby (the host). Absent fields stay; in metadata a text sets the key and null removes
it (other keys stay).
- Auth: yes.
- Body:
{"visibility"?:string, "max_players"?:int, "state"?:"open"|"in_game"|"closed", "metadata"?:{string:string|null}}. - 200:
LobbyInfoas it is now (afterclosed: as it was, with stateclosed). - Errors: 403
forbidden(not the host, a server rule); 404not_found(also for a caller who is not a member); 422validation_failed(a size below the member count or above the server's limit, the metadata limits, more than 64 metadata changes); 429rate_limited(lobby changes: 30 per 60 s).
POST /v1/lobbies/{lobby}/join#
Join by id: a public lobby, or a friends-only one of a friend.
- Auth: yes.
- 200:
LobbyInfo(also when the caller was a member already). - Errors: as
POST /v1/lobbies/join; 404not_foundalso for lobbies joined with their code only.
POST /v1/lobbies/{lobby}/leave#
- Auth: yes.
- 200:
{}(also when the caller was no member). - Errors: 404
not_found(no such lobby).
PUT /v1/lobbies/{lobby}/ready#
- Auth: yes.
- Body:
{"ready":bool}. - 200:
{}. - Errors: 403
not_a_member; 404not_found.
POST /v1/lobbies/{lobby}/code#
A new join code (the host); the old one stops working.
- Auth: yes.
- 200:
LobbyInfowith the new code. - Errors: 403
forbidden(not the host); 404not_found(also for a caller who is not a member); 429rate_limited(lobby changes: 30 per 60 s).
POST /v1/lobbies/{lobby}/host#
Hand the lobby to another member (the host).
- Auth: yes.
- Body:
{"user":int}. - 200:
{}. - Errors: 403
forbidden(not the host); 404not_found(no such lobby or member; also for a caller who is not a member).
DELETE /v1/lobbies/{lobby}/members/{user}#
Remove a member (the host).
- Auth: yes.
- 200:
{}(also when the player was no member). - Errors: 403
forbidden(not the host); 404not_found(also for a caller who is not a member); 422validation_failed(the caller's own id: leave instead).
Matchmaking#
Queues where players wait to be matched; the game's rules (on the server) decide who plays with
whom, the server tells the players. A player has one ticket at a time, in one of the server's
queues, with attributes the game's rules read (a rating, a region). A round runs every second:
the server's default rule matches the oldest tickets in groups of the queue's players; a game's
server may use its own rules and attach data to a match (a lobby, a server address, the teams).
Every matched player gets match.found; a ticket nobody matched runs out after its queue's timeout
(120 s by default) with match.expired. A client without a WebSocket reads its ticket instead: a
matched ticket answers its match for 60 seconds. A player whose last WebSocket connection closes
leaves its queue. Tickets live in the server's memory: a restart empties the queues.
MatchTicket {"id":int, "queue":string, "status":"waiting"|"matched", "created_at":ms, "expires_at":ms, "found"?:MatchFound}
MatchFound {"ticket":int, "queue":string, "players":[int], "data"?:JSON}
GET /v1/matchmaking/queues#
- Auth: yes.
- 200:
{"queues":[{"key":string, "players":int, "waiting":int}]}(players: per match of the default rule;waiting: tickets waiting now).
POST /v1/matchmaking/ticket#
- Auth: yes.
- Body:
{"queue":string, "attributes"?:JSON}(attributes: at most 1 KiB of JSON). - 200:
MatchTicket(waiting; a matched ticket of the caller is replaced). - Errors: 403
forbidden(a server rule); 404not_found(no such queue); 409conflict(a ticket of the caller waits already); 422validation_failed; 429rate_limited; 503unavailable(the server holds too many tickets).
GET /v1/matchmaking/ticket#
- Auth: yes.
- 200:
MatchTicket. - Errors: 404
not_found(no ticket: none made, cancelled, run out, or matched more than 60 s ago).
DELETE /v1/matchmaking/ticket#
- Auth: yes.
- 200:
{}(also when there was none).
Admin (role admin only)# admin only
Every admin route needs the Bearer token of an account with the admin role; others get 403
forbidden. Every admin action is recorded in the audit log. These routes are for operator tools,
never for player-facing pages.
AdminUser {"account":Account, "active_sessions":int, "last_seen_at"?:ms, "ban"?:BanInfo}
BanInfo {"banned_at":ms, "until"?:ms, "reason"?:string}
AuditEntry {"id":int, "action":string, "actor"?:int, "target_type"?:string, "target_id"?:string,
"ip"?:string, "request_id"?:string, "data"?:object, "created_at":ms}
| Method | Path | Request | Answer | Errors |
|---|---|---|---|---|
| GET | /v1/admin/users |
query q? (part of the email, case-insensitive, or display name, or an id), cursor?, limit? |
Page<AdminUser>, newest first |
|
| GET | /v1/admin/users/{user} |
– | AdminUser |
404 |
| POST | /v1/admin/users/{user}/ban |
{"until"?:ms (in the future; absent = until lifted), "reason"?:string (≤ 255 characters)} |
{}; sessions revoked, sockets closed with 4003 |
404; 409 conflict (yourself, or an admin: remove the role first); 422 |
| POST | /v1/admin/users/{user}/unban |
– | {} |
404 |
| DELETE | /v1/admin/users/{user}/sessions |
– | {}; every session revoked |
404 |
| DELETE | /v1/admin/users/{user}/identities/{provider} |
– | {} (unlink, e.g. steam) |
404 |
| PUT | /v1/admin/users/{user}/roles/{role} |
– | {} (granted, or already held) |
404 |
| DELETE | /v1/admin/users/{user}/roles/{role} |
– | {} (revoked, or not held) |
409 conflict (your own admin role, or the last admin) |
| GET | /v1/admin/audit |
query user? (acted or was the target), action? (one action, or a prefix ending in . such as admin.), cursor?, limit? |
Page<AuditEntry>, newest first |
|
| GET | /v1/admin/users/{user}/storage/{collection} |
query cursor?, limit? |
Page<StorageObjectInfo> |
|
| GET | /v1/admin/users/{user}/storage/{collection}/{key} |
– | StorageObject |
404 |
| PUT | /v1/admin/users/{user}/storage/{collection}/{key} |
{"value":JSON, "if_version"?:int, "write"?:"owner"\|"server", "visibility"?:"private"\|"public"\|"friends"} (write / visibility absent: unchanged; new objects owner, private) |
ObjectAck |
404 (no such account); 409 version_conflict; 422 |
| DELETE | /v1/admin/users/{user}/storage/{collection}/{key} |
query if_version? |
{} (also for a server-locked object) |
409 version_conflict |
An admin storage write ignores the owner's write lock and the owner's quotas.
Generated from API.md (repository commit 84a9d3c, file sha256 e735542eb5f5).