Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

roblox-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Roblox webhook notifications (Open Cloud webhooks configured per experience in the Creator Dashboard). Use when verifying the…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Roblox Webhooks

Roblox sends webhook notifications about events in your own experience: right-to-erasure requests, subscription lifecycle, commerce orders, transaction refunds and experiment harm alerts. You configure them per experience in the Creator Hub under Configurations → Webhooks.

This skill covers the inbound webhook only. The Open Cloud REST APIs (apis.roblox.com, x-api-key header) are a separate thing, and so are Discord or Slack incoming-webhook URLs that you can point a Roblox webhook at.

When to Use This Skill

  • How do I receive Roblox webhook notifications?
  • How do I verify the roblox-signature header?
  • Why does my Roblox webhook signature verification fail?
  • How do I handle a Roblox RightToErasureRequest?
  • Why is there no v1= in my roblox-signature header?
  • Why did Roblox stop sending webhooks to my URL?

Verification (core)

From Roblox's Verify webhook security section:

Part Value
Header roblox-signature: t=<timestamp>,v1=<signature>
t Unix time in seconds when the notification was sent
Signed message <t>.<request body>: timestamp, a literal ., then the body
Algorithm HMAC-SHA256, key = the webhook's secret, output base64 (not hex)
Replay window Optional in the docs. Their sample uses 300 s and the prose suggests up to 10 minutes. The examples default to 300 s
const crypto = require('crypto');

function verifyRobloxSignature(rawBody, header, secret, toleranceSec = 300) {
  if (!secret || !header) return false;
  let t = null; const sigs = [];
  for (const member of header.split(',')) {            // CSV: any order, any count
    const i = member.indexOf('='); if (i < 0) continue; // split on the FIRST '=' (base64 padding)
    const [k, v] = [member.slice(0, i).trim(), member.slice(i + 1).trim()];
    if (k === 't') t = v; else if (k === 'v1' && v) sigs.push(v);
  }
  if (!/^\d+$/.test(t || '') || sigs.length === 0) return false;   // no v1: reject, never skip
  if (Math.abs(Date.now() / 1000 - Number(t)) > toleranceSec) return false;
  const expected = Buffer.from(crypto.createHmac('sha256', secret)
    .update(`${t}.`).update(rawBody).digest('base64'));
  return sigs.some((s) => { const b = Buffer.from(s);
    return b.length === expected.length && crypto.timingSafeEqual(b, expected); });
}

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Python: base64.b64encode(hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).digest()), compared with hmac.compare_digest.

The secret is optional on Roblox's side. Without one, Roblox sends only t=<timestamp> and you can't authenticate the request at all. Set a secret on every webhook. The handlers reject a header with no v1 (401), a missing header (401) and an unset ROBLOX_WEBHOOK_SECRET (500). They never skip the check.

Raw body or re-serialised JSON? Roblox's own sample signs JSON.stringify(req.body) after express.json() has parsed it, and the prose says "the JSON string of the request body". The examples sign the raw body bytes instead. For ordinary compact payloads the two agree (the tests check that on their fixtures), but a JSON round trip is not byte-stable: it rewrites escapes ("a\/b" → "a/b"), normalises numbers (1.0 → 1), reorders numeric-looking keys and picks up any middleware mutation. The raw body has none of those failure modes. A live delivery is the only proof of which form the sender intends. See references/verification.md.

The timestamp is inside the signed message, so it can't be changed without breaking the HMAC. That's why the replay-window check works.

Payload

Every notification uses the same envelope. The field names are PascalCase:

{
  "NotificationId": "string",
  "EventType": "RightToErasureRequest",
  "EventTime": "2023-12-30T16:24:24.2118874Z",
  "EventPayload": { "UserId": 1, "GameIds": [1234, 2345] }
}
  • NotificationId: dedupe on it. "If the same NotificationId is received twice, it is considered a duplicate."
  • EventType: route on it.
  • EventTime: ISO-8601 with 7 fractional digits. Trim before parsing with Date or datetime.fromisoformat.
  • EventPayload: varies by event. IDs are JSON numbers (above 2^31, below 2^53).

Events

Only three EventType wire values are published anywhere in Roblox's docs:

EventType Trigger EventPayload
RightToErasureRequest Right to Erasure / Deletion Request UserId, GameIds (start place IDs)
SampleNotification Test Response button in the Creator Dashboard UserId
AnalyticsAlert An analytics alert
Полный SKILL.md на GitHub

Установить roblox-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TODO.mdexamples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/roblox/route.tsexamples/nextjs/lib/notifications.tsexamples/nextjs/lib/verify-roblox.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл roblox-webhooks?

Receive and verify Roblox webhook notifications (Open Cloud webhooks configured per experience in the Creator Dashboard). Use when verifying the roblox-signature header (t=<timestamp>,v1=<base64 HMAC-SHA256 of "<t>.<raw body>">), handling RightToErasureRequest (GDPR/CCPA right to erasure) and SampleNotification events, subscription, commerce order, transaction refund and experiment notifications, meeting the 5-second response budget, or debugging Roblox signature mismatches.

Как установить скилл roblox-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл roblox-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить roblox-webhooks с