GET /v1/guildGET /v1/verifications/:discordIdGET /v1/bansGET /v1/alts (RoGoid+)GET /v1/verify-link/:discordId/force-verify or the Members pageWant your bot to react when someone verifies? Use webhooks, and RoGoid sends your bot each verification as it happens.
All endpoints live under https://api.rogoid.xyz/v1.
Every request needs your server's API key, either as a bearer token or a header:
Authorization: Bearer rgd_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
or
X-Api-Key: rgd_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
A key only ever reads data for the one server it was generated on. Each server can make 60 requests a minute, or 300 a minute with RoGoid+. See rate limits for details.
Here's a first request, reading your server's settings with GET /v1/guild:
const res = await fetch('https://api.rogoid.xyz/v1/guild', {
headers: { Authorization: 'Bearer YOUR_API_KEY' }
});
if (!res.ok) throw new Error(`RoGoid API error ${res.status}`);
const guild = await res.json();
console.log(guild.guildName, guild.rateLimitPerMinute);
curl https://api.rogoid.xyz/v1/guild \ -H "Authorization: Bearer YOUR_API_KEY"
pip install requests
import requests
res = requests.get(
'https://api.rogoid.xyz/v1/guild',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=10,
)
res.raise_for_status()
guild = res.json()
print(guild['guildName'], guild['rateLimitPerMinute'])
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.rogoid.xyz/v1/guild", nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
if res.StatusCode != http.StatusOK {
log.Fatalf("RoGoid API error %d", res.StatusCode)
}
var guild struct {
GuildName string `json:"guildName"`
RateLimitPerMinute int `json:"rateLimitPerMinute"`
}
if err := json.NewDecoder(res.Body).Decode(&guild); err != nil {
log.Fatal(err)
}
fmt.Println(guild.GuildName, guild.RateLimitPerMinute)
}
<?php
$ch = curl_init('https://api.rogoid.xyz/v1/guild');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status !== 200) {
throw new RuntimeException("RoGoid API error $status");
}
$guild = json_decode($body, true);
echo $guild['guildName'], ' ', $guild['rateLimitPerMinute'], PHP_EOL;
Basic config for your server.
{
"guildId": "...",
"guildName": "...",
"verifiedRoleConfigured": true,
"vpnBlockingEnabled": false,
"banEvasionBlockingEnabled": false,
"premium": true,
"rateLimitPerMinute": 300
}
Generates a RoGoid verification link for that Discord member in your server no separate session or backend integration needed. Have your own panel/bot call this and send the member the link (as a button, DM, whatever); clicking it takes them straight into the same Roblox OAuth flow /verify uses, and RoGoid applies the verified role/nickname the moment it completes.
{
"url": "https://verify.rogoid.xyz/...",
"verifiedRoleConfigured": true
}
The link opens RoGoid's verification page on verify.rogoid.xyz. It only works for the Discord account it was made for: anyone else who opens it is asked to sign in as the right account. Older links on rogoid.xyz/verify still work and redirect there.
verifiedRoleConfigured is false if this server hasn't picked a verified role yet the link still works, but /verify will show a setup notice instead of starting Roblox sign-in until an admin configures one from the dashboard.
The Roblox account a Discord member is currently verified as in your server. 404 if not verified.
{
"discordId": "...",
"robloxId": "...",
"robloxUsername": "...",
"robloxDisplayName": "...",
"verificationMethod": "oauth",
"verifiedAt": "2026-09-01T12:00:00.000Z"
}
Ban records RoGoid holds for your server.
{ "bans": [ { "discordId": "...", "reason": "...", "bannedBy": "...", "createdAt": "..." } ] }
Members flagged for having a linked Roblox account shared with another Discord account that's currently in your server or banned from it. Returns 403 without RoGoid+.
{
"flagged": [
{
"discordId": "...",
"verifiedRobloxIds": ["..."],
"linkedAccounts": [ { "discordId": "...", "robloxId": "...", "status": "in_server" } ]
}
]
}
You can put your own bot in front of verification instead of using RoGoid's /verify command or panel. Your bot's only job is to hand the member a link everything after that is still RoGoid.
RoGoid still has to be installed in the server. It's what actually gives the verified role, removes the unverified role and sets the nickname, using its own permissions, so this replaces the prompt rather than replacing RoGoid. That means:
The flow is:
GET /v1/verify-link/:discordId with your API key.url.To react when verification finishes (send a confirmation, unlock a channel), point a webhook at your bot RoGoid will POST to it as soon as the member is verified.
Each link is generated for one specific member in your server, so build it when they ask for it don't post a single shared link in a channel. Only the member it was made for can finish verifying with it; everyone else is told the link is for someone else.
Example
These use Components V2 containers, not the older Embed API RoGoid's own bot has fully moved off embeds in favor of containers, and we'd recommend the same for anything you build against this API.
npm install discord.js
const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ContainerBuilder, TextDisplayBuilder, SeparatorBuilder, SeparatorSpacingSize, MessageFlags } = require('discord.js');
client.on('interactionCreate', async (interaction) => {
if (!interaction.isChatInputCommand() || interaction.commandName !== 'verify') return;
const res = await fetch(
`https://api.rogoid.xyz/v1/verify-link/${interaction.user.id}`,
{ headers: { Authorization: 'Bearer YOUR_API_KEY' } }
);
if (!res.ok) {
return interaction.reply({ content: 'Verification is unavailable right now.', ephemeral: true });
}
const { url, verifiedRoleConfigured } = await res.json();
if (!verifiedRoleConfigured) {
return interaction.reply({ content: 'This server has no verified role set up yet.', ephemeral: true });
}
const container = new ContainerBuilder()
.setAccentColor(0xf5ea51)
.addTextDisplayComponents(
new TextDisplayBuilder().setContent(
'# Verify with Roblox\n\nClick below to link your Roblox account. Your role is applied automatically once you finish.'
)
)
.addSeparatorComponents(new SeparatorBuilder().setSpacing(SeparatorSpacingSize.Large).setDivider(true))
.addActionRowComponents(
new ActionRowBuilder().addComponents(
new ButtonBuilder().setLabel('Verify').setStyle(ButtonStyle.Link).setURL(url)
)
);
await interaction.reply({
components: [container],
flags: MessageFlags.IsComponentsV2 | MessageFlags.Ephemeral
});
});
pip install -U discord.py
import aiohttp
import discord
API_KEY = 'YOUR_API_KEY'
@bot.tree.command(name='verify', description='Verify with Roblox')
async def verify(interaction: discord.Interaction):
async with aiohttp.ClientSession() as session:
async with session.get(
f'https://api.rogoid.xyz/v1/verify-link/{interaction.user.id}',
headers={'Authorization': f'Bearer {API_KEY}'},
) as res:
if res.status != 200:
await interaction.response.send_message('Verification is unavailable right now.', ephemeral=True)
return
data = await res.json()
if not data['verifiedRoleConfigured']:
await interaction.response.send_message('This server has no verified role set up yet.', ephemeral=True)
return
view = discord.ui.LayoutView()
view.add_item(discord.ui.Container(
discord.ui.TextDisplay(
'# Verify with Roblox\n\nClick below to link your Roblox account. Your role is applied automatically once you finish.'
),
discord.ui.Separator(spacing=discord.SeparatorSpacing.large),
discord.ui.ActionRow(
discord.ui.Button(label='Verify', style=discord.ButtonStyle.link, url=data['url'])
),
accent_colour=0xF5EA51,
))
await interaction.response.send_message(view=view, ephemeral=True)
Reply ephemerally so the link stays private to the member who asked for it. To check whether someone is already verified before showing the button, call GET /v1/verifications/:discordId first a 404 means they aren't verified yet.
Instead of polling, you can have RoGoid POST to your own endpoint the moment something happens. Set the URL under Webhook on your server's Settings page you'll get a signing secret when you save.
Events
member.verified a member finished verification in your servermember.unverified a member's verification was removed therePayload
{
"event": "member.verified",
"sentAt": "2026-09-08T20:00:00.000Z",
"data": {
"guildId": "...",
"discordId": "...",
"robloxId": "...",
"robloxUsername": "...",
"robloxDisplayName": "...",
"verificationMethod": "oauth"
}
}
member.unverified carries guildId, discordId, robloxId and robloxUsername, and the Roblox fields may be null if there was no active link left to read.
Verifying the signature
Every request carries these headers:
X-RoGoid-Event the event nameX-RoGoid-Timestamp milliseconds since epochX-RoGoid-Signature HMAC-SHA256 of timestamp + "." + rawBody, using your signing secretCheck it against the raw request body, before any JSON parsing re-serialising the object first will produce a different string and the signature won't match.
npm install express
const crypto = require('crypto');
app.post('/webhooks/rogoid', express.raw({ type: 'application/json' }), (req, res) => {
const timestamp = req.get('X-RoGoid-Timestamp');
const signature = req.get('X-RoGoid-Signature');
const expected = crypto
.createHmac('sha256', process.env.ROGOID_WEBHOOK_SECRET)
.update(`${timestamp}.${req.body}`)
.digest('hex');
const valid = signature
&& signature.length === expected.length
&& crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
if (!valid) return res.sendStatus(401);
if (Math.abs(Date.now() - Number(timestamp)) > 5 * 60 * 1000) return res.sendStatus(401);
const { event, data } = JSON.parse(req.body);
console.log(event, data.discordId, data.robloxUsername);
res.sendStatus(200);
});
pip install flask
import hashlib
import hmac
import json
import os
import time
from flask import Flask, abort, request
app = Flask(__name__)
SECRET = os.environ['ROGOID_WEBHOOK_SECRET'].encode()
@app.post('/webhooks/rogoid')
def rogoid_webhook():
timestamp = request.headers.get('X-RoGoid-Timestamp', '')
signature = request.headers.get('X-RoGoid-Signature', '')
raw_body = request.get_data()
expected = hmac.new(SECRET, timestamp.encode() + b'.' + raw_body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(signature, expected):
abort(401)
if not timestamp.isdigit() or abs(time.time() * 1000 - int(timestamp)) > 5 * 60 * 1000:
abort(401)
payload = json.loads(raw_body)
print(payload['event'], payload['data']['discordId'], payload['data']['robloxUsername'])
return '', 200
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"strconv"
"time"
)
func rogoidWebhook(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body)
if err != nil {
w.WriteHeader(http.StatusBadRequest)
return
}
timestamp := r.Header.Get("X-RoGoid-Timestamp")
signature := r.Header.Get("X-RoGoid-Signature")
mac := hmac.New(sha256.New, []byte(os.Getenv("ROGOID_WEBHOOK_SECRET")))
mac.Write([]byte(timestamp + "." + string(body)))
expected := hex.EncodeToString(mac.Sum(nil))
if !hmac.Equal([]byte(signature), []byte(expected)) {
w.WriteHeader(http.StatusUnauthorized)
return
}
sentAt, err := strconv.ParseInt(timestamp, 10, 64)
if err != nil || time.Since(time.UnixMilli(sentAt)).Abs() > 5*time.Minute {
w.WriteHeader(http.StatusUnauthorized)
return
}
var payload struct {
Event string `json:"event"`
Data struct {
DiscordID string `json:"discordId"`
RobloxUsername string `json:"robloxUsername"`
} `json:"data"`
}
if err := json.Unmarshal(body, &payload); err != nil {
w.WriteHeader(http.StatusBadRequest)
return
}
fmt.Println(payload.Event, payload.Data.DiscordID, payload.Data.RobloxUsername)
w.WriteHeader(http.StatusOK)
}
func main() {
http.HandleFunc("POST /webhooks/rogoid", rogoidWebhook)
log.Fatal(http.ListenAndServe(":8080", nil))
}
<?php
$secret = getenv('ROGOID_WEBHOOK_SECRET');
$timestamp = $_SERVER['HTTP_X_ROGOID_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_ROGOID_SIGNATURE'] ?? '';
$rawBody = file_get_contents('php://input');
$expected = hash_hmac('sha256', $timestamp . '.' . $rawBody, $secret);
if (!hash_equals($expected, $signature)) {
http_response_code(401);
exit;
}
if (!ctype_digit($timestamp) || abs(round(microtime(true) * 1000) - (int) $timestamp) > 5 * 60 * 1000) {
http_response_code(401);
exit;
}
$payload = json_decode($rawBody, true);
error_log($payload['event'] . ' ' . $payload['data']['discordId'] . ' ' . $payload['data']['robloxUsername']);
http_response_code(200);
Delivery behaviour
2xx as soon as you receive it and do your work afterwards. RoGoid gives up after 5 seconds./verifications/:discordId if you need certainty.https and publicly reachable private and internal addresses are rejected.Errors come back as JSON with an error code, and sometimes a message.
| Status | Error | Meaning |
|---|---|---|
400 | invalid_discord_id | The Discord ID in the URL isn't a valid ID. |
401 | missing_api_key / invalid_api_key | No key was sent, or it doesn't match a server. |
403 | premium_required | The endpoint needs RoGoid+ (only /alts). |
404 | not_verified | That member isn't verified in your server. |
429 | rate_limited | Your server went over its limit for this minute. Wait the number of seconds in retryAfter, then retry. |
| Plan | Requests per minute |
|---|---|
| Free | 60 |
| RoGoid+ | 300 |
The limit is per server, shared by everything that uses that server's key, and resets every minute. Every response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Your server's limit per minute. |
X-RateLimit-Remaining | Requests left in the current minute. |
X-RateLimit-Reset | Seconds until the count resets. |
Retry-After | Only on a 429: seconds to wait before trying again. |
Questions or requests: Get support or join our Discord