Odds alerts webhooks

Odds alerts webhooks: get a signed POST when a line moves, a price crosses a threshold or a steam move hits, with retries and delivery logs.

Alerts watch the live feed for you and push an event the moment something happens — a price or line moves by at least your threshold. Events are delivered to a webhook endpoint you control (signed and retried), by email, or both. Set them up under Dashboard → Alerts and Webhooks.

Alert types

RuleEventFires when
Line moveline.movedA main-market price moves by at least N cents (e.g. −110 → −130 is 20¢), or the spread/total line changes.

Every rule can be narrowed to leagues, books and markets. The same market fires at most once every 10 minutes per rule, and each delivered alert costs 1 credit (skipped silently if you are out of credits). Moves in games already in progress only alert on Syndicate, the plan with in-play odds. Plan limits:

PlanAlert rulesWebhook endpoints
Sandbox00
Edge102
Sharp10010
Syndicate50025

Event payload

Every delivery is a POST with a JSON body shaped like this, plus the headers PreciseAPI-Event, PreciseAPI-Delivery (the event id) and PreciseAPI-Signature.

line.moved
{
  "id": "evt_7Gq2KxW9mZpL4rT1vN8c",
  "type": "line.moved",
  "created": "2026-10-18T19:42:07.118Z",
  "data": {
    "rule": {
      "id": "ar_k2V9xQ7mL3pR8tZ1",
      "name": "NFL steam moves",
      "kind": "line_move"
    },
    "event": {
      "id": "evt_0uuc6p2dsqa",
      "league": "nfl",
      "start_time": "2026-10-18T20:25:00.000Z",
      "status": "scheduled",
      "home": {
        "id": "buf",
        "name": "Buffalo Bills",
        "abbr": "BUF"
      },
      "away": {
        "id": "kc",
        "name": "Kansas City Chiefs",
        "abbr": "KC"
      }
    },
    "book": {
      "id": "draftkings",
      "name": "DraftKings"
    },
    "market": {
      "id": "mkt_3xk9a0b1c2d",
      "key": "moneyline",
      "period": "full_game",
      "outcomes": [
        {
          "id": "sel_1a2b3c4d5e6",
          "name": "Buffalo Bills",
          "side": "home",
          "price": -145
        },
        {
          "id": "sel_6e5d4c3b2a1",
          "name": "Kansas City Chiefs",
          "side": "away",
          "price": 125
        }
      ],
      "suspended": false,
      "updated_at": "2026-10-18T19:42:06.981Z"
    },
    "move": {
      "outcome_id": "sel_1a2b3c4d5e6",
      "outcome": "Buffalo Bills",
      "from": -125,
      "to": -145,
      "cents": 20
    },
    "line": null
  }
}

Verifying signatures

Each request is signed with your endpoint's secret (whsec_…). The header is PreciseAPI-Signature: t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of "<t>.<raw body>". Reject requests older than five minutes to prevent replays.

import express from 'express';
import { verifyWebhookSignature } from '@preciseapi/node';

const app = express();

// Verify against the raw body — not re-serialised JSON.
app.post('/webhooks/preciseapi', express.raw({ type: 'application/json' }), (req, res) => {
  const ok = verifyWebhookSignature(req.body, req.get('PreciseAPI-Signature'), process.env.PRECISEAPI_WEBHOOK_SECRET);
  if (!ok) return res.sendStatus(400);

  const event = JSON.parse(req.body);
  if (event.type === 'line.moved') {
    const { event: game, book, move } = event.data;
    console.log(`${book.name}: ${move.outcome} ${move.from} → ${move.to}`);
  }
  res.sendStatus(200); // respond fast; do heavy work asynchronously
});

Delivery & retries

  • Respond with any 2xx within 5 seconds (acknowledge first, process afterwards). Redirects are not followed, and URLs must use https on the standard port.
  • Failed deliveries are retried after 30 seconds, 2 minutes, 10 minutes, 1 hour and 6 hours, then marked failed. You can retry any delivery from the dashboard.
  • After 20 consecutive failures the endpoint is disabled and the account owner is emailed. Re-enable it once fixed.
  • Deliveries can arrive out of order or more than once — use the event id to de-duplicate.
  • Endpoints must use HTTPS and cannot point at private or internal networks.
Testing locally? Use “Send test” on the Webhooks page to deliver a signed test.ping event and see the response code and latency immediately.

Previous: WebSocket stream · Next: Sources, leagues & markets