Command Palette

Search for a command to run...

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

upollo-webhooks

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

Deprecated: Upollo has shut down and no longer sends webhooks. Receive and verify Upollo webhooks. Use when setting up Upollo webhook handlers, debugging…

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

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

Upollo Webhooks

Deprecated. Upollo has shut down. Since 2026-07-30 its app, API and docs hosts (app.upollo.ai, api.upollo.ai, docs.upollo.ai) no longer resolve, its npm SDKs are unpublished, and the upollo.ai domain now serves an unrelated site. No new deliveries arrive. This skill is kept as a record of how the webhooks worked; don't build a new receiver from it, and don't follow old links to Upollo's domain.

When to Use This Skill

  • How do I receive Upollo webhooks?
  • How do I verify the Upollo Upollo-Signature header?
  • How do I verify an Upollo HMAC-SHA512 signature over the raw body?
  • How do I react to an Upollo fraud flag like ACCOUNT_SHARING or MULTIPLE_ACCOUNTS?
  • How do I handle the Upollo action (CHALLENGE / DENY / PERMIT / OFFER / LOG)?
  • Why is my Upollo webhook signature verification failing?

How Upollo Webhooks Work

Upollo is a fraud / risk-detection platform. Unlike most providers, Upollo webhooks are not a subscription to discrete named events. A webhook fires whenever Upollo flags a user (for example account sharing or multi-accounting). Each delivery is an analysis describing the user, the device, the recommended action, and the list of flags that were raised.

Every delivery is signed. Upollo computes an HMAC-SHA512 of the raw request body, keyed with your webhook secret, and sends it in the Upollo-Signature header. Verify it against the raw body before doing anything else.

Not Standard Webhooks. Upollo does not use the Standard Webhooks (webhook-id / webhook-timestamp / webhook-signature) scheme. It uses a single Upollo-Signature header with t: and s0: parts (below).

Verification (core)

Upollo-Signature carries two comma-separated parts:

Upollo-Signature: t:1706352000,s0:3f9a...<128 hex chars>
  • t — Unix timestamp of the delivery (seconds). Use it for optional replay protection; it is not part of the signed content.
  • s0 — HMAC-SHA512(secret, rawBody). Recompute over the raw body and compare timing-safe.

Digest encoding. Upollo's docs don't state hex vs base64. The s0: prefix and observed 128-char values indicate lowercase hex. The snippets below compute the digest once and accept hex or base64 so they keep working either way — confirm hex against one live delivery, then you can drop base64.

Node:

const crypto = require('crypto');

function verifyUpolloWebhook(rawBody, signatureHeader, secret) {
  if (!signatureHeader) return false;
  const s0 = Object.fromEntries(
    signatureHeader.split(',').map((p) => {
      const i = p.indexOf(':');
      return [p.slice(0, i).trim(), p.slice(i + 1).trim()];
    })
  ).s0;
  if (!s0) return false;
  const digest = crypto.createHmac('sha512', secret).update(rawBody).digest();
  return [digest.toString('hex'), digest.toString('base64')].some((expected) => {
    try {
      return crypto.timingSafeEqual(Buffer.from(s0), Buffer.from(expected));
    } catch {
      return false; // length mismatch → not a match
    }
  });
}

Python:

import hmac, hashlib, base64

def verify_upollo_webhook(raw_body: bytes, signature_header: str, secret: str) -> bool:
    if not signature_header:
        return False
    parts = dict(p.split(":", 1) for p in signature_header.split(",") if ":" in p)
    s0 = parts.get("s0", "").strip()
    if not s0:
        return False
    digest = hmac.new(secret.encode(), raw_body, hashlib.sha512).digest()
    return (
        hmac.compare_digest(s0, digest.hex())
        or hmac.compare_digest(s0, base64.b64encode(digest).decode())
    )

For complete handlers with action dispatch, flag handling, and tests, see examples/express/, examples/nextjs/, examples/fastapi/.

The Payload: Action + Flags

Because there is no event name, dispatch on the recommended action and the flags array. The payload is Upollo's analysis object (fields shown in protobuf-JSON camelCase):

{
  "action": "CHALLENGE",
  "eventType": "LOGIN",
  "flags": [
    {
      "type": "ACCOUNT_SHARING",
      "firstFlagged": "2026-07-01T12:00:00Z",
      "mostRecentlyFlagged": "2026-07-27T09:00:00Z"
    }
  ],
  "userInfo": { "userId": "user_123", "userEmail": "[email protected]" },
  "deviceInfo": { "deviceId": "dev_abc", "deviceClass": "DEVICE_CLASS_DESKTOP" },
  "isUsingVpn": false
}

Upollo's enums carry prefixes at the source (OUTCOME_CHALLENGE, EVENT_TYPE_LOGIN, FLAG_TYPE_UNSPECIFIED); observed webhook payloads use the short form (CHALLENGE, LOGIN, ACCOUNT_SHARING). The example handlers normalize by stripping the OUTCOME_ / EVENT_TYPE_ / FLAG_TYPE_ prefix so they match either form.

Common Actions (action)

The recommended response to the flagged user. Values (short form):

Action Meaning Typical Handling
PERMIT
Полный SKILL.md на GitHub

Установить upollo-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/upollo/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Deprecated: Upollo has shut down and no longer sends webhooks. Receive and verify Upollo webhooks. Use when setting up Upollo webhook handlers, debugging Upollo-Signature verification (HMAC-SHA512), or reacting to fraud/risk flags like ACCOUNT_SHARING and MULTIPLE_ACCOUNTS when a user is flagged and an action (CHALLENGE, DENY, PERMIT) is returned.

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

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

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

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

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

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