Developers

Strike API v1

Base URL https://strikemod.com/api/v1. All requests must use HTTPS and be made from server-side code.

Authentication

Create a key in Dashboard → API keys. Send it as a bearer token. Keys are shown exactly once, stored only as keyed hashes, and can be revoked or rotated individually. Never embed keys in client-side code, Roblox LocalScripts or public repositories.

http
Authorization: Bearer stk_live_xxxxxxxxxxxxxxxxxxxxxxxx

Response format

json
// success
{ "ok": true, "data": { ... } }

// failure
{ "ok": false, "error": { "code": "INSUFFICIENT_SCOPE", "message": "This API key lacks the 'workspace:read' scope" } }

Error codes: INVALID_API_KEY (401), API_KEY_EXPIRED (401), INSUFFICIENT_SCOPE (403), RATE_LIMITED (429), INTERNAL_ERROR (500).

Rate limiting

Each key has a per-minute limit (default 60). Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (unix seconds). When exceeded you receive 429 with a Retry-After header.

Endpoints

MethodPathDescriptionScope
GET/pingVerifies the key and reachability.none
GET/workspaceWorkspace name and its connected communities with verification state and response mode.workspace:read
GET/blacklistDiscord or Roblox lookups. Use ?platform=discord|roblox&userId=ID, with optional page and status.blacklist:read
POST/reportsSubmit platform, userId, communityId, reason and an HTTPS evidence link for independent review.blacklist:submit
GET / POST / PATCH/webhooksList/create subscriptions and manage update, pause, resume, rotate, test, retry and delete actions.webhooks:manage
GET/bot/serverCheck a verified Discord server's workspace connection.workspace:read
GET/bot/blacklistActive global and server-only blacklist entries.blacklist:read
POST / DELETE/bot/blacklistAdd or revoke server-only blacklist entries.blacklist:manage
GET/bot/reportsReports submitted in the verified Discord server.blacklist:read
POST/bot/reportsSubmit a report for review.blacklist:submit
GET/bot/violationsServer history and applicable active global blacklist entries.blacklist:read
POST / PATCH/bot/moderationRecord moderation intent and outcome.moderation:write

Bot endpoints require ?guildId=DISCORD_SERVER_ID and a server verified in the key's workspace. Lists accept page and userId. Global blacklist entries are managed only by Strike Admins and Owners in the website's Reports & blacklist area. Reports do not become blacklist entries until approved. Signed webhook subscriptions and delivery history are available through the Webhooks dashboard and API.

Examples

Roblox Luau (server-side HttpService)

Enable Allow HTTP Requests in Game Settings → Security. Only call Strike from a Script.

luau
-- ServerScriptService/StrikeClient.luau  (never place keys in LocalScripts or ReplicatedStorage)
local HttpService = game:GetService("HttpService")
local BASE = "https://strikemod.com/api/v1"
local KEY = "stk_live_..." -- load from a server-only secret store

local function strike(path)
  local ok, res = pcall(function()
    return HttpService:RequestAsync({
      Url = BASE .. path,
      Method = "GET",
      Headers = { ["Authorization"] = "Bearer " .. KEY },
    })
  end)
  if not ok then warn("Strike request failed:", res) return nil end
  local body = HttpService:JSONDecode(res.Body)
  if not body.ok then warn("Strike error:", body.error.code, body.error.message) return nil end
  return body.data
end

print(strike("/workspace"))

Node.js

javascript
const res = await fetch("https://strikemod.com/api/v1/workspace", {
  headers: { Authorization: `Bearer ${process.env.STRIKE_API_KEY}` },
});
const body = await res.json();
if (!body.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
console.log(body.data.communities);

Discord bot (discord.js)

javascript
// discord.js (v14) — call Strike from your bot's server process
import { Client, GatewayIntentBits } from "discord.js";

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.once("ready", async () => {
  const r = await fetch("https://strikemod.com/api/v1/ping", {
    headers: { Authorization: `Bearer ${process.env.STRIKE_API_KEY}` },
  });
  console.log("Strike reachable:", (await r.json()).ok);
});
client.login(process.env.DISCORD_TOKEN);

Response modes

Each connected community has a response mode: notify only, manual moderator review or automatic enforcement. Strike returns data; enforcement is always performed by your own integration. Strike never bans users across communities by itself.

Webhooks

Create subscriptions in Dashboard → Webhooks, or POST /api/v1/webhooks with name, url and an events array. Public HTTPS receivers on port 443 with public IPv4 DNS are supported. Private addresses, redirects and embedded credentials are rejected. The signing secret is returned once, on creation or rotation.

json
{
  "name": "Moderation receiver",
  "url": "https://receiver.example.com/strike",
  "events": [
    "blacklist.created",
    "blacklist.updated",
    "blacklist.revoked",
    "blacklist.restored",
    "report.submitted",
    "report.reviewed",
    "appeal.submitted",
    "appeal.reviewed"
  ]
}

Payloads contain id, type, createdAt and data. Use the exact raw request body to compute HMAC-SHA256 with your signing secret over X-Strike-Timestamp + "." + rawBody. The X-Strike-Signature header is "v1=" followed by the hexadecimal digest. Compare signatures using a constant-time comparison and reject timestamps more than five minutes old.

javascript
import { createHmac, timingSafeEqual } from "node:crypto";
function verifyWebhook(rawBody, timestamp, signature, secret) {
  if (!/^\d+$/.test(timestamp) || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
  const expected = "v1=" + createHmac("sha256", secret).update(timestamp + "." + rawBody).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(signature || "");
  return a.length === b.length && timingSafeEqual(a, b);
}

Delivery is at least once. Deduplicate by the payload id or X-Strike-Event-Id. Return a 2xx response after storing the event. Failed deliveries retry up to six attempts after 1 minute, 5 minutes, 15 minutes, 1 hour and 6 hours. Failed attempts can be retried manually from delivery history. History is retained for 90 days. Global blacklist events go to subscribed workspaces; private reports and appeals go only to their workspace.

PATCH /api/v1/webhooks accepts id and action (update, pause, resume, rotate, test, retry, delete). Update accepts name, url and events. Retry also requires deliveryId. Secrets and full receiver URLs are never returned by the listing endpoint.