Skip to content

Developers

Webhooks

A webhook sends every alert that matches its rules to your endpoint as a signed JSON POST — at once, with no digest and no quiet hours. Use it to feed your own dashboards, ticketing or chat. Webhooks are part of Growth, Pro and Enterprise.

Set up

  1. An owner or admin opens Alerts and adds a webhook with your HTTPS endpoint.
  2. Copy the signing secret — it is shown once. We keep it, with the address, in an encrypted vault; the app shows the address masked and it can't be edited (add a new webhook instead).
  3. Choose which events it gets (all by default), then press Send a test alert: the payload has "test": true and an invented casino.

The request

POST to your URL with Content-Type: application/json and these headers:

X-Lobby-Radar-Timestamp
Unix time in seconds when we signed the request.
X-Lobby-Radar-Signature
v1= followed by the hex HMAC-SHA256 of timestamp + "." + the raw body, keyed with your signing secret.
X-Lobby-Radar-Event
The event type, the same as type in the body.

Answer with any 2xx status within 5 seconds; do slow work after you reply. Redirects are not followed. Anything else counts as a failure and is retried.

Payload

Version 1. Fields are only ever added, never renamed or removed, so ignore what you don't know. lobby, game and deal are null when the event has none; the same event keeps its id on every retry, so you can drop duplicates.

{
  "id": "7c1e2f0a-4b6d-4e8a-9f21-3d5c8b0e6a14",
  "type": "deal_broken",
  "version": 1,
  "severity": "critical",
  "occurred_at": "2026-11-18T10:30:12.000Z",
  "test": false,
  "workspace": {
    "id": "5f0c7a1e-2d3b-4c5e-8f9a-0b1c2d3e4f50",
    "name": "Northlight Games"
  },
  "title": "Deal broken: Jungle Fuse at Rio Royale CL",
  "text": "Jungle Fuse dropped from #9 (row 2) to #27 (row 4) in Populares (mobile, guest). Deal: #9 until 30 Nov.",
  "lobby": {
    "id": "0c9e5b7a-1f2d-4e3c-9a8b-7d6e5f4c3b2a",
    "casino": "Rio Royale",
    "country": "CL",
    "section": "Populares",
    "section_key": "popular",
    "device": "mobile",
    "view": "guest"
  },
  "game": {
    "id": "a8f3c1d2-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "name": "Jungle Fuse"
  },
  "deal": {
    "id": "d4c2b1a0-9f8e-4d7c-6b5a-4f3e2d1c0b9a",
    "status": "broken",
    "previous_status": "ok",
    "target_position": 9,
    "target_row": null,
    "starts_on": "2026-11-01",
    "ends_on": "2026-11-30"
  },
  "positions": {
    "current": 27,
    "previous": 9,
    "current_row": 4,
    "previous_row": 2,
    "row_size": 8
  },
  "links": {
    "app": "https://lobby-radar.com/app/deals?month=2026-11#deal-d4c2b1a0-9f8e-4d7c-6b5a-4f3e2d1c0b9a",
    "lobby": "https://lobby-radar.com/app/lobbies/0c9e5b7a-1f2d-4e3c-9a8b-7d6e5f4c3b2a?section=popular",
    "screenshot": null
  }
}

Event types:

game_appearedgame_disappearedentered_first_screenleft_first_screenmoveddeal_brokendeal_neardeal_restoredlobby_unreachablelobby_restoredrelease_live

severity is critical for broken deals and info for the rest. The same event types and fields are in the events endpoint of the API.

Check the signature

Recompute the signature from the raw body and compare in constant time. Reject requests older than 5 minutes, so a copied request can't be replayed later.

Node.js

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

// rawBody: the request body exactly as received (a string), before JSON.parse.
export function isFromLobbyRadar(rawBody, headers, secret) {
  const timestamp = Number(headers["x-lobby-radar-timestamp"]);
  const signature = headers["x-lobby-radar-signature"] ?? "";
  // Reject old messages: a replay of yesterday's request fails here.
  if (!Number.isInteger(timestamp) || Math.abs(Date.now() / 1000 - timestamp) > 300) return false;
  const expected = "v1=" + createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(signature);
  return a.length === b.length && timingSafeEqual(a, b);
}

Python

import hashlib, hmac, time

def is_from_lobby_radar(raw_body: bytes, headers, secret: str) -> bool:
    try:
        timestamp = int(headers["X-Lobby-Radar-Timestamp"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - timestamp) > 300:
        return False
    signed = f"{timestamp}.".encode() + raw_body
    expected = "v1=" + hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, headers.get("X-Lobby-Radar-Signature", ""))

Retries

If your endpoint doesn't answer with 2xx, we try again after 1 min, 5 min, 30 min, 2 h, 5 h, 10 h — the last try 24 hours after the first. While it keeps failing, the app shows the webhook as failing with the last error, until the next success. Only public HTTPS addresses are accepted: we don't post to private networks.