eloma

API docs

Read your workspace's data from your bot, game server or website, and get told when it changes.

Get a key

In your workspace, open Developer, create a project, then create an API key with the permissions you need. You'll see the key once. Keep it on your server: never put it in a Roblox client script, a browser or a public repository. If a key leaks, revoke it and make a new one.

Make a request

Send the key as a Bearer token. Every key is read-only and limited to its own workspace.

curl https://eloma.lol/api/v1/workspace \
  -H "Authorization: Bearer api_xxxxxxxxxxxx_..."

Responses are JSON. Errors look like {"error":{"code":"...","message":"..."}} with status 400 (bad parameter), 401 (missing, invalid or revoked key), 403 (key lacks the permission), 429 (rate limit) or 500.

Each key can make 60 requests a minute. Over that, you get a 429 with a Retry-After header. From Roblox, call the API through your own server, not from HttpService in a live game, so the key stays secret.

Endpoints

Permissions: workspace:read, members:read, applications:read, discord:read, discord:write.

GET /api/v1/workspace

Needs workspace:read. Name, address, description, visibility, member count and linked Roblox group.

GET /api/v1/members

Needs members:read. Members with their role, join date, username and linked Roblox account. Supports limit (1–100, default 50) and offset. The response includes total.

GET /api/v1/applications

Needs applications:read. Applications with answers, newest first. Filter with status (pending, approved, rejected or withdrawn). Supports limit and offset.

GET /api/v1/members/lookup

Needs members:read. Finds one member by a linked account: ?discord_id= or ?roblox_id=. Returns 404 for anyone who isn't a member of your workspace.

GET /api/v1/discord

Needs discord:read. The Discord server linked with /link-community and the Discord role each Roblox group rank gets (roblox_role_id "0" is the role for every verified member).

POST /api/v1/discord/sync

Needs discord:write. Body { "discord_user_id": "…" }. Checks that member's current group rank and updates their roles in your server, for example right after your game ranks them.

POST /api/v1/discord/messages

Needs discord:write. Body { "channel_id": "…", "content": "…" }. Posts a message (up to 2,000 characters) as the bot in a channel of your linked server. Mentions are shown but never ping anyone.

Webhooks

Add a webhook to a project with a public https:// URL and pick the events you want. We send a POST with a JSON body when they happen. Reply with any 2xx status within 5 seconds. Other responses and timeouts are retried after 1 minute, 5 minutes, 30 minutes and 2 hours. A webhook is paused after 20 deliveries in a row fail; resume it from the dashboard.

Events: member.joined, member.left, member.removed, member.role_changed, application.submitted, application.approved, application.rejected, workspace.updated. The test button sends ping.

{
  "id": "6f1c3b9e-…",
  "event": "member.joined",
  "created_at": "2026-12-04T12:00:00Z",
  "workspace": { "id": "…", "slug": "my-studio", "name": "My Studio" },
  "actor": { "user_id": "…", "username": "player_one" },
  "data": { "role": "member" }
}

Use id to ignore duplicates: a retry has the same id. Headers: X-Webhook-Id, X-Webhook-Event, X-Webhook-Timestamp (Unix seconds) and X-Webhook-Signature.

Verify signatures

Every delivery is signed with the webhook's secret (whsec_…, shown once when you create or rotate it). The signature is v1= followed by the hex HMAC-SHA256 of the timestamp, a dot and the raw body. Reject requests that don't match or are more than 5 minutes old.

import { createHmac, timingSafeEqual } from "node:crypto";

// Use the raw request body, before any JSON parsing.
export function verify(rawBody, headers, secret) {
  const timestamp = headers["x-webhook-timestamp"];
  const signature = headers["x-webhook-signature"] ?? "";
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false; // older than 5 minutes
  const expected = "v1=" + createHmac("sha256", secret).update(timestamp + "." + rawBody).digest("hex");
  const a = Buffer.from(signature);
  const b = Buffer.from(expected);
  return a.length === b.length && timingSafeEqual(a, b);
}