SYSTEM / ONLINE
NODE / 01
Ranked Bedwars
HOME
GUILDS
FEATURES
PRICING
SUPPORT
VIEW DEMO
DASHBOARDOPEN DASHBOARD
SURFACE / ACTIVE
RBW / 01
Developers/API Reference

Build on Ranked Bedwars

Read your leaderboard, record games and manage moderation from your own tools. Create a key, send it as a Bearer token, and call any route below.

Open Dashboard
OverviewCredentialsMaking requestsErrorsStandard vs masterRoute reference
Overview

One API for your whole ranked community

The Ranked Bedwars API is a JSON-over-HTTPS interface to everything the dashboard and the Discord bot store about your server: players and their profiles, per-season stats and leaderboards, games and their participants, seasons, parties, moderation records, and configuration. Anything you can see on your public portal you can read here, and with the right key you can write it too.

1. Create a key

Pick a permission level in the dashboard and copy the key once.

2. Send it as a Bearer token

Add Authorization: Bearer <key> to every request.

3. Call a route

Use your guild's Discord id in the path and read or write JSON.

curl
export RBW_API_KEY="rbw_live_xxxxxxxxxxxxxxxx"
export GUILD_ID="812345678901234567"

# Top 10 players this season
curl "https://api.myrbw.dev/v1/guilds/$GUILD_ID/leaderboard?limit=10" \
  -H "Authorization: Bearer $RBW_API_KEY"
Credentials

Getting and using an API key

Create a key

  1. Sign in and open your server's dashboard, then go to API Keys (/dashboard/{guildId}/api-keys). You need dashboard access to the server.
  2. Press Create key, give it a name that says what uses it (for example “Leaderboard website”), and optionally an expiry date.
  3. Copy the key straight away. It looks like rbw_live_ followed by 48 hex characters. It is shown once: only a one-way hash is stored, so a lost key can't be recovered, only replaced.
  4. Store it as a secret (an environment variable or your host's secret manager). Never put it in front-end code, a public repository, or a Discord message.

Send it on every request

HTTP header
Authorization: Bearer rbw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Only the Authorization header is used. A missing or unknown key is 401 unauthorized; an expired one is 401 key_expired; a key that was turned off is 403 key_disabled.

Key types

KeyReachesCanWho gets it
Read-onlyYour guild onlyEvery GET route in the Standard reference. Cannot create, change or delete anything.Anyone you let build a leaderboard, stats site or bot widget.
Standard (read-write)Your guild onlyEverything a read-only key can, plus every write route in the Standard reference (register players, record games, moderation, config).Your own bots and tools that need to write.
MasterEvery guild, plus platform routesEvery route, including the Master reference: guild administration, API key management, the store, the shop catalogue and plan requests, and developer controls. Sees unredacted data.The Ranked Bedwars platform itself (dashboard and Discord bot). Never issued to servers and never created through the API.

A standard or read-only key is bound to one guild: using it on any other guild is 403 guild_access_denied, whether or not that guild exists.

What a non-master key never sees

Responses to read-only and standard keys have credentials removed before they leave the server. Any field whose name contains password, secret, token, api_key, webhook, credential or ciphertext is dropped at any depth, so bot account passwords and stored third-party keys are never returned. The whole store (orders, refunds, payment secrets) and API key management are master-only.

Rotating and revoking

Create the new key first, switch your integration over, then delete the old one from the API Keys page. Deleting a key takes effect immediately. If a key leaks, delete it; you can also deactivate a key temporarily instead of deleting it. Setting an expiry on keys you hand to third parties limits the damage of a leak.

Making requests

Conventions every route follows

TopicHow it works
Base URLhttps://api.myrbw.dev. Every route starts with /v1. Guild routes look like /v1/guilds/{guildID}/….
FormatRequests and responses are JSON (UTF-8). Send Content-Type: application/json with a body. Timestamps are RFC 3339 in UTC (2026-10-12T19:45:02Z). Request bodies are limited to 1 MiB.
Guild idsAnywhere {guildID} appears you may use the guild's Discord server id (a snowflake such as 812345678901234567) or its database id (a small number such as 12). The API tells them apart: numbers above 1,000,000,000,000,000 are snowflakes.
Player idsAnywhere {playerID} appears, and in the player_id field of party requests, you may send the player's Discord user id or their database id, with the same rule. The responses always include both (id and snowflake_id).
Single recordsReturned as a bare JSON object.
ListsReturned as a bare JSON array. Add ?limit=25&offset=50 (limit 1–200) to window it; the response then carries an X-Total-Count header with how many rows match in total. Add order=desc for newest first. The database does the filtering, sorting and counting, so ask for what you need instead of fetching everything: any column of a record works as a filter (?type=queue_ban,server_ban matches either), min_<column> and max_<column> set a range on numbers and times, sort=<column> picks the order, and count=false skips the total for endless lists. Players and games add search, status and rank filters of their own, documented on each route. A bad filter value or sort column answers 400 invalid_query.
UpdatingPATCH routes merge: send only the fields you want to change and everything else keeps its value. PUT replaces the whole record. Unknown JSON fields are ignored.
DeletingDeletes are soft: a deleted record disappears from lists but is kept, and most tables have a /restore route to bring it back.
Who did itWrites are attributed to the key's name. Send X-Actor: <discord user id> to record a specific staff member instead (for example on punishments and strikes).
Rate limitsThe public gateway allows 600 requests per minute per IP address. Past that you get 429 with a Retry-After header (seconds). Cache leaderboards instead of polling them.
CORSThe gateway answers cross-origin requests, but a key placed in browser code is visible to every visitor. Call the API from your server, or use a read-only key you are happy to expose.
curl
# Register a player, then add a win to their stats
curl -X POST "https://api.myrbw.dev/v1/guilds/$GUILD_ID/players" \
  -H "Authorization: Bearer $RBW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"snowflake_id": "712345678901234567", "username": "NightOwl_Kyle"}'

curl -X POST "https://api.myrbw.dev/v1/guilds/$GUILD_ID/players/712345678901234567/stats/increment" \
  -H "Authorization: Bearer $RBW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"deltas": {"wins": 1, "games_played": 1, "elo": 25}}'
Errors

Status codes and error bodies

Failures return a non-2xx status and a small JSON body. Switch on code, which is stable; error is a human-readable message that may change.

403 Forbidden
{
  "error": "API key is not authorized for this guild",
  "code": "guild_access_denied"
}
StatuscodeMeaning
400invalid_json · invalid_query · invalid_id · invalid_guild · invalid_player · invalid_season · self_targetThe request is malformed: bad JSON, a missing or invalid parameter, or an id that isn't a number.
401unauthorized · key_expiredNo Bearer key, an unknown key, or an expired key.
403key_disabled · read_only · master_required · guild_access_denied · not_party_leaderThe key is turned off, is read-only on a write route, is not a master key on a master route, or belongs to a different guild.
404not_found · guild_not_found · player_not_found · not_in_party · no_party_invite · not_party_member · wipe_not_foundThe record doesn't exist (or isn't in your guild). Guild-bound keys get 403 instead of 404 for other guilds, so they can't probe for them.
409conflict · already_in_party · target_in_party · party_full · party_invites_closed · party_invites_disabled · game_ended · nothing_to_wipe · wipe_already_restoredThe request is valid but clashes with current state: a duplicate username, subdomain or key, a full party, a game that already ended, and so on.
410party_invite_expiredThe invite existed but has lapsed.
429—Too many requests. Wait Retry-After seconds.
500internal_errorSomething failed on our side. The cause is deliberately not echoed; retry, and contact us if it persists.
Standard vs master

Which reference do I need?

Standard API

For community developers. Uses a read-only or standard key from your dashboard and covers everything about your guild: players, stats, games, seasons, parties, moderation, configuration and the audit trail. This is what you want.

Master API

For the platform and for people running their own copy of the Ranked Bedwars database service. A master key spans all guilds, and adds guild administration, API key management, the store, the shop catalogue and plan requests, and developer controls. It is documented here for transparency and self-hosting; the hosted service does not issue master keys.

A master key can call every route in the Standard reference as well. Need help? Reach us on the support page.

Route reference

Every route, with a live demo

Open a route to see what it does, its parameters, the response you should expect, and a box to try it. The demo runs in a sandbox by default, with sample data and the real access rules. Switch to Live API to call the real service with your own key.

Live demo settings

These apply to the “Try it” box on every route below. Nothing here is saved or sent anywhere except the request you press Send on.

Pretend to hold

The sandbox never touches a server. It answers with realistic data and applies the same access rules as the real API, so switch the key to see a 401 or 403.

180 of 180 routes

Guild1Configuration6Players12Stats & leaderboard8Games20Seasons10Parties13Moderation33Game setup tables49Raw tables & audit trail28

Guild

The server your key belongs to. Changing a guild's tier or enabled flag, deleting it and restoring it are platform operations; see the Master reference.

Configuration

A guild's settings are one configuration row plus a state snapshot. Responses to read-only and standard keys never include credentials: any field whose name contains password, secret, token, api_key, webhook, credential or ciphertext is removed.

Players

A player has one global record (their Discord account) and one record per guild they registered in (username, nickname and privacy toggles). Anywhere a route takes {playerID} you may send the Discord id or the database id.

Stats & leaderboard

Per-season numbers for each player. Every route here takes an optional season_id and uses the guild's active season when you leave it out.

Games

A game moves through waiting › in_progress › completed (or cancelled). Completing a game scores every participant and updates their stats in one transaction.

Seasons

Stats are kept per season and a guild has exactly one active season. Seasons are numbered 1, 2, 3… automatically and a number is never reused.

Parties

Players queue together as a party. Calls that act for a player (create, invite, kick, transfer) need to know who: a key tied to a player is that player; otherwise send the `X-Actor-Player-ID` header with their Discord or database id.

Moderation

Punishments (mutes, bans), strikes, Elo decays and stat wipes. Each can be read per player or guild-wide. The staff member recorded on a write is the `X-Actor` header, else the key's name.

Game setup tables

Ranks, maps, modes, bots, queues, teams and perks are stored one row per entry: a `name` plus a `data` object holding the entry's settings. Bot rows never include the account password for non-master keys.

Raw tables & audit trail

Direct access to the per-player tables and the guild's audit trail. Most integrations should prefer the player routes above.

Ranked Bedwars

The competitive matchmaking platform for Bedwars. Play, rank up, and track your stats.

SUPPORT EMAILhelp.myrbw@gmail.com

PRODUCT

  • Home
  • Features
  • Pricing
  • Get Started
  • Dashboard

COMPANY

  • About
  • Contact

RESOURCES

  • Tutorials
  • Updates
  • API Reference
  • FAQ

COMMUNITY

  • Guilds
  • Discord
  • GitHub

SUPPORT & LEGAL

  • Help Center
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Refund Policy
  • Data Request
© 2026 Ranked Bedwars. All rights reserved.
BUILT FOR COMPETITIVE PLAYERS