Command Palette

Search for a command to run...

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

micetribe-webhooks

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

Receive and verify MICEtribe webhooks (micetribe.com event registration, badge printing and check-in). Use when setting up a MICEtribe webhook handler…

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

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

MICEtribe Webhooks

When to Use This Skill

  • How do I receive MICEtribe webhooks?
  • How do I verify the MICEtribe X-Signature header?
  • Why is my MICEtribe webhook signature verification failing?
  • How do I handle registration.created or registration.attended events?
  • How do I dedupe MICEtribe webhook deliveries?

Setup note

MICEtribe signs a delivery only when the webhook has a signing secret, so set one on every webhook.

Without a signing secret, deliveries carry no X-Signature header and there is nothing to verify.

Verification (core)

X-Signature is the bare lowercase hex HMAC-SHA256 (no prefix) of X-Timestamp + "." + the exact raw request body, keyed with the webhook's signing secret as UTF-8 bytes. Build the signed message as bytes (the X-Timestamp string as latin1, a literal ., the body bytes untouched), validate the signature is exactly 64 hex characters, then compare in constant time. Missing/empty headers, a malformed value or a mismatch is a 401.

const crypto = require('crypto');

function verify(rawBody, signature, timestamp, secret) { // rawBody: Buffer
  if (!signature || !timestamp || !/^[0-9a-fA-F]{64}$/.test(signature)) return false;
  const signed = Buffer.concat([Buffer.from(timestamp, 'latin1'), Buffer.from('.'), rawBody]);
  const expected = crypto.createHmac('sha256', Buffer.from(secret, 'utf8')).update(signed).digest();
  const received = Buffer.from(signature.toLowerCase(), 'hex');
  return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}
import hmac, hashlib, re

def verify(raw_body: bytes, signature: str, timestamp: str, secret: str) -> bool:
    if not signature or not timestamp or not re.fullmatch(r"[0-9a-fA-F]{64}", signature):
        return False
    signed = b"".join([timestamp.encode("latin-1"), b".", raw_body])
    expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).digest()
    return hmac.compare_digest(bytes.fromhex(signature), expected)

Timestamp window (opt-in): X-Timestamp is Unix seconds. MICEtribe lists rejecting old timestamps as optional. The examples do not reject old timestamps by default, because Hookdeck retries and replays resend the original headers and timestamp. Set MICETRIBE_WEBHOOK_TOLERANCE_SECONDS (unset or 0 = off) to opt in.

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

MICEtribe has no webhook verification SDK, so verification is manual. Read the body as raw bytes (express.raw({ type: '*/*' }), await request.arrayBuffer(), await request.body()) and parse JSON only after the check. See references/verification.md.

Common Event Types

Dispatch on the body's meta.trigger field.

meta.trigger Description
registration.created A new registration is created
registration.updated An existing registration is updated
registration.deleted A registration is deleted
registration.attended Attendance is recorded
registration.printed A badge/registration is printed

For the full reference, see MICEtribe's webhook documentation.

Important Headers

Header Description
X-Signature Hex HMAC-SHA256 of X-Timestamp + . + raw body (only sent when a signing secret is set)
X-Timestamp Unix timestamp in seconds used when signing
X-Request-Id Unique UUID for this delivery attempt

Delivery and Idempotency

The request is a POST with a JSON body. A 2xx response is success; 3xx and above, network errors and timeouts (10 seconds) fail. MICEtribe retries up to 5 times, 15 min, 30 min, 3 h, 6 h and 12 h apart (a dispatcher runs every 15 minutes). MICEtribe's docs say to process idempotently on registration_id + meta.trigger + X-Request-Id, which the examples use, but they also describe X-Request-Id as unique per delivery attempt. If a retry carries a new one, that key won't catch it, so also keep a hash of the raw body (retries may repeat the same payload) and make writes idempotent.

Environment Variables

MICETRIBE_WEBHOOK_SECRET=your_webhook_signing_secret   # The signing secret set on the webhook (used as UTF-8)
MICETRIBE_WEBHOOK_TOLERANCE_SECONDS=0                  # Optional; a positive value turns on the X-Timestamp check

Local Development

# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 micetribe --path /webhooks/micetribe

Reference Materials

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

examples/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/micetribe/route.tsexamples/nextjs/lib/micetribe.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and verify MICEtribe webhooks (micetribe.com event registration, badge printing and check-in). Use when setting up a MICEtribe webhook handler, debugging X-Signature verification failures, or handling registration.created, registration.updated, registration.deleted, registration.attended and registration.printed events.

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

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

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

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

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

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