Telegram and webhookPREMIUM

Your alerts, sent to a Telegram chat or to your own server. Once a day, and only when there is news.

Webhook

  1. On your account's Alerts section, paste your URL beside Webhook and press Save.
  2. Copy the signing secret. It is shown once. Saving the URL again makes a new one.
  3. Press Send a test.

What we send. Answer with a 2xx inside 5 seconds.

POST <your URL>
X-PunditScore-Timestamp: 1794990000
X-PunditScore-Signature: sha256=<hex>

{
  "source": "punditscore",
  "alerts": [
    {
      "id": "0198c1d2-...",
      "kind": "calls",
      "title": "2 new calls: Will the Fed cut rates in December?",
      "detail": "Jane Doe, John Roe",
      "url": "https://punditscore.ai/markets?tab=open&market=...",
      "createdAt": "2026-11-18T17:30:04.000Z"
    }
  ]
}

Check a request is ours

Compute HMAC-SHA256 of timestamp + "." + body with your signing secret, and compare it with the signature header. In Node:

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

// body is the raw request body, before any JSON parsing.
function isFromPunditScore(headers, body, secret) {
  const timestamp = headers["x-punditscore-timestamp"];
  const expected = "sha256=" + createHmac("sha256", secret).update(timestamp + "." + body).digest("hex");
  const got = headers["x-punditscore-signature"] ?? "";
  return got.length === expected.length && timingSafeEqual(Buffer.from(got), Buffer.from(expected));
}

If deliveries stop

After 5 failed deliveries in a row we stop sending, and your account page says so. Press Send a test to start it again. Your alerts keep showing on your account page the whole time.

Connect Telegram or save a webhook URL.Your alerts →

Next: What sets an alert off → · Read alerts from a script →