API Reference
Everything you need to integrate WESK RankBot into your Roblox game. All endpoints accept JSON and return JSON.
Authentication
All requests must include your API key in the Authorization header. Generate your key from the dashboard.
Set Rank
Sets a user's rank in the group to the exact rank ID specified. Overwrites their current rank.
| Parameter | Type | Description |
|---|---|---|
| groupIdrequired | number | Roblox group ID linked to your token. |
| userIdrequired | number | Roblox User ID to rank. |
| actionrequired | string | "setRank" for this endpoint. |
| targetRankrequired | number | Target rank (1–254) in your group. |
Get Rank
Returns the current rank and role name for a user in the group.
| Parameter | Type | Description |
|---|---|---|
| groupIdrequired | number | Roblox group ID (URL param). |
| userIdrequired | number | Roblox User ID (URL param). |
Promote
Promotes a user by one rank. Fails gracefully if they are already at the highest rank.
| Parameter | Type | Description |
|---|---|---|
| groupIdrequired | number | Roblox group ID. |
| userIdrequired | number | Roblox User ID to promote. |
| actionrequired | string | "promote" |
Demote
Demotes a user by one rank. Available on Pro and Max plans only.
| Parameter | Type | Description |
|---|---|---|
| groupIdrequired | number | Roblox group ID. |
| userIdrequired | number | Roblox User ID to demote. |
| actionrequired | string | "demote" |
Group Info
Returns metadata about the group linked to your API key.
Group Roles
Returns all roles in the linked group with their IDs and names.
Error Codes
All errors return a consistent JSON shape with a machine-readable message.
| HTTP | Description |
|---|---|
| 400 | Missing or malformed request parameters. |
| 401 | API key missing or invalid. |
| 403 | Token not authorized for this group or action. |
| 404 | User is not a member of this group. |
| 429 | Monthly request limit reached for your plan. |
| 502 | Roblox API error — upstream issue. |
Rate Limits
Limits are per API key per month. Dedicated instances (Max plan) are isolated.
| Plan | Requests/month |
|---|---|
| Starter | 100 |
| Pro | 5,000 |
| Max | Unlimited |
X-RateLimit-Remaining and X-RateLimit-Reset.RankService Module
Drop-in Lua module for Roblox. Wraps the HTTP API with automatic retry, error handling, and typed returns.
AppCenter Module
Configurable application center. Define questions, set auto-rank on accept, and wire up webhooks.
Migration Kit
Moving from Blox-Link, RoGold, or a custom solution? The migration kit maps your existing rank IDs, transfers config, and goes live with zero downtime.