Save an https address on your server's or bot's API & webhooks page. Nunu List then sends a POST with JSON for every bump or bot vote ("type": "vote") and every new heart ("type": "heart"). target_type is "server" or "bot". Automatic partner bumps are not sent.
The payload
{
"type": "vote",
"target_type": "server",
"target_id": "112233445566778899",
"user_id": "123456789012345678",
"is_test": false,
"timestamp": "2026-11-29T15:00:00.000Z"
}
Headers
Authorization: your webhook secret, as it is shown in the dashboard.X-Nunu-Signature:sha256=and the HMAC-SHA256 of the raw body with your secret, in hex. Check this one: it proves the message is from Nunu List and was not changed.Content-Type: application/jsonandUser-Agent: NunuList-Webhooks/1.0.
Answers and retries
Answer with any 2xx within 5 seconds. Anything else (or no answer) is tried again after 10 seconds, 1 minute and 5 minutes; after that the delivery is marked failed. The dashboard shows the last 50 deliveries and has a Send test vote button ("is_test": true).
The address must be https on the public internet; local and private network addresses are refused.
Check the signature in JavaScript (Node.js, Express)
const crypto = require('crypto');
const express = require('express');
function verify(rawBody, header, secret) {
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
return typeof header === 'string' && header.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected));
}
const app = express();
// the raw body: the signature is made over the exact bytes we send
app.post('/nunu-webhook', express.raw({ type: 'application/json' }), (req, res) => {
if (!verify(req.body, req.get('X-Nunu-Signature'), process.env.NUNU_WEBHOOK_SECRET)) return res.sendStatus(401);
const event = JSON.parse(req.body);
if (event.type === 'vote' && !event.is_test) {
// reward event.user_id here
}
res.sendStatus(204);
});
app.listen(3000);
Check the signature in Python (Flask)
import hashlib, hmac, json, os
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ["NUNU_WEBHOOK_SECRET"]
def verify(raw_body: bytes, header: str) -> bool:
expected = "sha256=" + hmac.new(SECRET.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header or "")
@app.post("/nunu-webhook")
def nunu_webhook():
raw = request.get_data() # the exact bytes we sent
if not verify(raw, request.headers.get("X-Nunu-Signature")):
abort(401)
event = json.loads(raw)
if event["type"] == "vote" and not event["is_test"]:
pass # reward event["user_id"] here
return "", 204