> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.fluxerlist.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.fluxerlist.com/_mcp/server.

# Webhooks

Webhooks push events to an HTTPS URL on your server. When someone votes for your bot, FluxerList sends a signed `POST` to that URL straight away, so your bot can reward the voter without asking the API every few minutes.

These are outgoing webhooks from FluxerList to a server you run. They're separate from the Fluxer channel webhook the FluxerList bot creates for [notifications](/bot-notifications).

## What you need

* **Developer access** on your FluxerList account. If you don't have it yet, the Webhooks section of your dashboard shows a short application. See [apply for developer access](#apply-for-developer-access).
* **A listing you own or develop.** Endpoints only ever receive events for servers, bots and themes you own, or bots and servers where you're an accepted team member.
* **A public HTTPS URL** that can answer `POST` requests.

### Plans

|                               | Free                         | Developer+ (coming soon) |
| ----------------------------- | ---------------------------- | ------------------------ |
| Endpoints                     | 2                            | 5                        |
| Event types                   | 5, across all your endpoints | Every event              |
| Patterns like `bot.*` and `*` | No, exact event names only   | Yes                      |
| Delivery log                  | 7 days                       | 14 days                  |

On Free, an event used by more than one of your endpoints counts once, so two endpoints can both get `bot.voted` and still have 4 event types left between them. `webhook.test` and `webhook.endpoint_disabled` never count.

## Apply for developer access

Webhooks send voter data (Fluxer IDs and usernames) to your server, so there's a short application first.

#### Open the Developer tab

Go to your dashboard, open **Developer**, scroll to **Webhooks** and choose **Apply**.

#### Answer three questions

Pick which of your listings the webhooks are for (one listing type, up to 20 listings), say what you're building in up to 500 characters, and give a rough guess of how many events a day you expect. You can leave the guess empty.

#### Accept the developer terms

Read the [Developer Terms](https://fluxerlist.com/developer-terms) shown in the form and tick the box. They say voter data may only be used to run features for your own listing, such as rewarding voters, and must never be sold, shared or used to profile people. We record which version you accepted.

#### Get a decision

If you own or develop an approved listing that's at least 7 days old and hasn't been flagged, you're approved straight away and can add endpoints. Otherwise the FluxerList team reviews your application and tells you the result by Fluxer DM.

If your application isn't approved, the DM and the Developer tab show the reason, and you can apply again once it's sorted. Accounts that already had developer access before applications existed don't need to apply.

> **Note**
>
> Developer sign-ups, endpoint changes and API key actions are recorded in an audit log for security and abuse prevention. See the [Privacy Policy](https://fluxerlist.com/privacy) for what it keeps and for how long.

If developer access is suspended, your endpoints are turned off and you get a DM with the reason. Once it's restored, turn your endpoints back on from the Developer tab.

## Add an endpoint

#### Open the Developer tab

Go to your dashboard, open **Developer**, and scroll to **Webhooks**.

#### Add your URL

Choose **Add endpoint** and paste the URL, for example `https://bot.example.com/fluxerlist`. A label is optional and only you see it.

#### Pick events and listings

Choose which events to receive, and either all your listings or only some of them. See [choosing events](#choose-events).

#### Pass the test

Choose **Add and send test**. FluxerList sends a signed `webhook.test` to your URL. The endpoint goes **Live** once your server answers with any `2xx` status. If it doesn't, the dashboard says why, for example that your server answered `404` or didn't answer within 10 seconds.

You can send another test at any time with **Send test**, up to 5 a minute.

### URL rules

FluxerList checks the URL when you save it and again before every delivery. It must:

* start with `https://` and use the standard port, 443
* use a domain name, not an IP address, with no username or password in it
* be at most 512 characters
* resolve only to public addresses. Domains that point at private, loopback, link-local or other internal addresses are refused.

FluxerList never follows redirects. A `3xx` answer counts as a failed delivery, so use the final URL.

### Secret path

A hard-to-guess path adds an extra check on top of the signature: only someone who knows the full URL can reach your endpoint. In the endpoint form, choose **Add a secret path** to put 22 random characters on the end of your URL, for example `https://bot.example.com/fluxerlist/Hk3vQ9xTq2LmZb7WcR4nYp`. The form shows the route to add to your bot, and **Copy URL** copies the whole thing. Choose **New secret path** to swap it for another one before you save.

The endpoint list, the delivery log and any DMs about the endpoint only show its domain. Editing the endpoint shows the full URL again.

> **Tip**
>
> The secret is part of the URL, so keep it out of public code, repos and logs. The signature is still the real check: verify it even with a secret path.

### Change the URL

Edit the endpoint and paste the new URL. FluxerList sends a test to the **new** URL first, and keeps delivering to the old one until it passes. If the test fails, the old URL stays and the dashboard shows why. To rotate a secret path, keep the old path working until the new one has passed its test.

## Choose events

| Event                                                                    | Sent when                                                                                                             |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| `server.voted`, `bot.voted`, `theme.voted`                               | Someone votes for your listing                                                                                        |
| `server.vote_removed`, `bot.vote_removed`, `theme.vote_removed`          | Someone removes their vote                                                                                            |
| `server.bumped`                                                          | Your server is bumped on the site or with the FluxerList bot                                                          |
| `server.bump_ready`                                                      | The bump cooldown has ended, so members can bump again                                                                |
| `server.bump_reset`                                                      | The cooldown was cleared with a shop bump reset                                                                       |
| `server.rating_created`, `bot.rating_created`, `theme.rating_created`    | Someone rates your listing for the first time                                                                         |
| `server.rating_updated`, `bot.rating_updated`, `theme.rating_updated`    | Someone changes their rating. Changes within 10 minutes arrive as one event, about 10 minutes after the first change. |
| `server.comment_created`, `bot.comment_created`, `theme.comment_created` | Someone comments on your listing                                                                                      |
| `server.comment_deleted`, `bot.comment_deleted`, `theme.comment_deleted` | A comment is deleted by its author                                                                                    |
| `webhook.test`                                                           | You add an endpoint, change its URL, turn it back on, or choose **Send test**                                         |
| `webhook.endpoint_disabled`                                              | One of your other endpoints was turned off automatically                                                              |

You can subscribe to exact event names. On Developer+ you can also use patterns:

| Pattern     | Receives                    |
| ----------- | --------------------------- |
| `bot.voted` | Just that event             |
| `bot.*`     | Every event for bots        |
| `*.voted`   | Votes on every listing type |
| `*`         | Everything                  |

`webhook.test` and `webhook.endpoint_disabled` always go to the endpoint they're about, whatever it subscribes to.

**Listings:** leave the endpoint on **All my listings** to receive events for every listing you own or develop, including ones you add later, or pick specific listings. If you stop owning or developing a picked listing, it's removed from the endpoint; an endpoint left with no listings is turned off.

## What a delivery looks like

Every delivery is a `POST` with a JSON body and these headers:

| Header                                            | Value                                                                                                                                                                                                |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `content-type`                                    | `application/json`                                                                                                                                                                                   |
| `user-agent`                                      | `FluxerList-Webhooks/1.0 (+https://docs.fluxerlist.com/webhooks)`                                                                                                                                    |
| `webhook-id`                                      | The event id, like `evt_01JBQ9F2T6Y8K3M4N5P6Q7R8S9`. Retries of the same event reuse it.                                                                                                             |
| `webhook-timestamp`                               | When this attempt was signed, in Unix seconds                                                                                                                                                        |
| `webhook-signature`                               | `v1a,` followed by a base64 Ed25519 signature. During a key rotation it can hold several, separated by spaces.                                                                                       |
| `fluxerlist-key-id`                               | Which key signed it, like `2026-11`                                                                                                                                                                  |
| `signature-agent`, `signature-input`, `signature` | A [Web Bot Auth](/webhook-sender#web-bot-auth) signature, so Cloudflare and other firewalls can recognise FluxerList. It signs the request, not the body; use `webhook-signature` to check the body. |

> **Note**
>
> Run a website and seeing `FluxerList-Webhooks` traffic? [FluxerList Webhooks bot](/webhook-sender) explains what it sends and how to verify it.

The body always has the same envelope. `data` depends on the event - the [webhook reference](/webhooks-overview) has the full schema and required fields for every event type.

```json
{
  "id": "evt_01JBQ9F2T6Y8K3M4N5P6Q7R801",
  "type": "bot.voted",
  "created_at": "2026-10-27T02:02:53Z",
  "test": false,
  "data": {
    "bot": {
      "id": "7c1e2a90-4b1d-4f0e-9a51-2d6f8b3c1e44",
      "fluxer_bot_id": "1428837012345678901",
      "slug": "musicbot",
      "name": "MusicBot"
    },
    "voter": {
      "fluxer_id": "1390557788990011223",
      "username": "hunter"
    },
    "votes_total": 412,
    "is_repeat": false,
    "last_voted_at": null,
    "from_server": null,
    "from_server_verified": false
  }
}
```

Fluxer ids are strings. Don't parse them as numbers, because they're too large for many languages' number types.

#### Vote fields

* `votes_total` is the listing's vote count after this vote.
* `is_repeat` is `true` when this person already voted for this listing in the last 12 hours, for example after removing their vote and voting again. Pay one-off rewards only when it's `false`.
* `last_voted_at` is when they last voted for this listing, or `null`.
* After removing a vote, a person has to wait 2 minutes before voting for the same listing again.
* `from_server` and `from_server_verified` are reserved for vote links that credit a server. They're `null` and `false` for now.
* Server events use `server` with `id`, `fluxer_guild_id`, `slug` and `name`. Theme events use `theme` with `id`, `slug` and `name`.

#### Bumps

`server.bumped` has `bumper` (`fluxer_id` and `username`, or `null` if we couldn't tell who it was), `via` (`site` or `bot`), `boosted`, `next_bump_at` and `bump_streak`. `server.bump_ready` has `last_bump_at` and `last_bumper`, and arrives within about a minute of the cooldown ending. `server.bump_reset` has `reset_by` and `source`, which is `shop`.

#### Ratings

Both have `user`, `rating` (1 to 5), `average` and `ratings_total`. `rating_updated` also has `old_rating`: the rating before the first change in the 10-minute window, so 3 → 4 → 5 arrives as one event from 3 to 5.

#### Comments

`comment_created` has `comment` (`id`, `content`, `created_at`), `author`, `is_repeat` and `last_commented_at`. `is_repeat` is `true` when the same person commented on this listing in the last 12 hours, even if they deleted that comment, so deleting and reposting can't earn a second reward. `comment_deleted` has `comment_id`, `author` and `by`.

#### vote_removed

```json
{
  "id": "evt_01JBQ9F2T6Y8K3M4N5P6Q7R802",
  "type": "server.vote_removed",
  "created_at": "2026-10-27T02:02:53Z",
  "test": false,
  "data": {
    "server": {
      "id": "b52f0c11-8e7a-4d3c-a6f9-0e1d2c3b4a59",
      "fluxer_guild_id": "1390114455667788990",
      "slug": "fluxerlist",
      "name": "FluxerList"
    },
    "voter": { "fluxer_id": "1390557788990011223", "username": "hunter" },
    "votes_total": 87,
    "voted_at": "2026-10-27T01:40:12Z",
    "revote_available_at": "2026-10-27T02:04:53Z"
  }
}
```

`voted_at` is when the removed vote was made, or `null` for votes older than webhooks.

#### webhook.test

`test` is `true`, and `data` has a `message` and the `endpoint_id`. Answer with any `2xx`.

#### webhook.endpoint_disabled

Sent to your other live endpoints when one is turned off automatically. `data` has the `endpoint_id`, its `url`, a `reason` such as `Every delivery failed for 3 days.`, and `failing_since`.

## Verify the signature

Check every request before you act on it. Anyone can send a request to your URL; only FluxerList can sign one.

1. Fetch the public keys from `GET https://fluxerlist.com/api/v1/webhooks/public-key`. It needs no API key. Cache the response for an hour.
2. Build the signed text: the `webhook-id` header, a `.`, the `webhook-timestamp` header, a `.`, and the **raw** request body exactly as received.
3. Take each signature in `webhook-signature` that starts with `v1a,`, base64-decode the rest, and check it against the key whose `id` matches `fluxerlist-key-id`. One valid signature is enough.
4. Reject the request if `webhook-timestamp` is more than 5 minutes from your clock.
5. Store `webhook-id` and ignore repeats. Retries reuse the id and can arrive up to about 25 hours later, so keep ids for at least 2 days.

The public key endpoint returns:

```json
{
  "keys": [
    { "id": "2026-11", "alg": "Ed25519", "pem": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n" }
  ]
}
```

> **Warning**
>
> Verify the raw body, before parsing it. Parsing and re-serialising JSON can change spacing or key order, and then the signature won't match.

**`Node.js (Express)`**

```javascript title="Node.js (Express)"
import express from "express";
import { createPublicKey, verify } from "node:crypto";

let keys = new Map();
let fetchedAt = 0;

async function publicKey(id) {
  if (!keys.has(id) || Date.now() - fetchedAt > 60 * 60 * 1000) {
    const res = await fetch("https://fluxerlist.com/api/v1/webhooks/public-key");
    const body = await res.json();
    keys = new Map(body.keys.map((k) => [k.id, createPublicKey(k.pem)]));
    fetchedAt = Date.now();
  }
  return keys.get(id);
}

async function isFromFluxerList(req) {
  const id = req.get("webhook-id");
  const timestamp = req.get("webhook-timestamp");
  const signatures = (req.get("webhook-signature") ?? "").split(" ");
  const key = await publicKey(req.get("fluxerlist-key-id"));
  if (!id || !timestamp || !key) return false;
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;

  const signed = Buffer.from(`${id}.${timestamp}.${req.body.toString("utf8")}`);
  return signatures
    .filter((s) => s.startsWith("v1a,"))
    .some((s) => verify(null, signed, key, Buffer.from(s.slice(4), "base64")));
}

const app = express();

app.post("/fluxerlist", express.raw({ type: "application/json" }), async (req, res) => {
  if (!(await isFromFluxerList(req))) return res.sendStatus(401);
  const event = JSON.parse(req.body.toString("utf8"));

  // Answer first, then do the slow work, so the request finishes well within 10 seconds.
  res.sendStatus(204);

  if (event.type === "bot.voted" && !event.data.is_repeat) {
    // ...reward event.data.voter.fluxer_id, once per webhook-id
  }
});

app.listen(3000);
```

**`Python (Flask)`**

```python title="Python (Flask)"
import base64
import time

import requests
from cryptography.exceptions import InvalidSignature
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from flask import Flask, request

app = Flask(__name__)
_keys, _fetched_at = {}, 0.0


def public_key(key_id):
    global _keys, _fetched_at
    if key_id not in _keys or time.time() - _fetched_at > 3600:
        body = requests.get("https://fluxerlist.com/api/v1/webhooks/public-key", timeout=10).json()
        _keys = {k["id"]: load_pem_public_key(k["pem"].encode()) for k in body["keys"]}
        _fetched_at = time.time()
    return _keys.get(key_id)


def is_from_fluxerlist(req):
    msg_id = req.headers.get("webhook-id")
    timestamp = req.headers.get("webhook-timestamp")
    key = public_key(req.headers.get("fluxerlist-key-id"))
    if not msg_id or not timestamp or key is None:
        return False
    if abs(time.time() - int(timestamp)) > 300:
        return False

    signed = f"{msg_id}.{timestamp}.".encode() + req.get_data()
    for sig in req.headers.get("webhook-signature", "").split(" "):
        if not sig.startswith("v1a,"):
            continue
        try:
            key.verify(base64.b64decode(sig[4:]), signed)
            return True
        except InvalidSignature:
            pass
    return False


@app.post("/fluxerlist")
def fluxerlist():
    if not is_from_fluxerlist(request):
        return "", 401
    event = request.get_json()
    if event["type"] == "bot.voted" and not event["data"]["is_repeat"]:
        pass  # ...reward event["data"]["voter"]["fluxer_id"], once per webhook-id
    return "", 204
```

**`Go (net/http)`**

```go title="Go (net/http)"
package main

import (
	"crypto/ed25519"
	"crypto/x509"
	"encoding/base64"
	"encoding/json"
	"encoding/pem"
	"io"
	"net/http"
	"strconv"
	"strings"
	"sync"
	"time"
)

var (
	mu        sync.Mutex
	keys      = map[string]ed25519.PublicKey{}
	fetchedAt time.Time
)

func publicKey(id string) ed25519.PublicKey {
	mu.Lock()
	defer mu.Unlock()
	if _, ok := keys[id]; !ok || time.Since(fetchedAt) > time.Hour {
		res, err := http.Get("https://fluxerlist.com/api/v1/webhooks/public-key")
		if err != nil {
			return keys[id]
		}
		defer res.Body.Close()
		var body struct {
			Keys []struct{ ID, PEM string } `json:"keys"`
		}
		if json.NewDecoder(res.Body).Decode(&body) != nil {
			return keys[id]
		}
		fresh := map[string]ed25519.PublicKey{}
		for _, k := range body.Keys {
			block, _ := pem.Decode([]byte(k.PEM))
			if block == nil {
				continue
			}
			if pub, err := x509.ParsePKIXPublicKey(block.Bytes); err == nil {
				if edKey, ok := pub.(ed25519.PublicKey); ok {
					fresh[k.ID] = edKey
				}
			}
		}
		keys, fetchedAt = fresh, time.Now()
	}
	return keys[id]
}

func fromFluxerList(r *http.Request, body []byte) bool {
	id := r.Header.Get("webhook-id")
	timestamp := r.Header.Get("webhook-timestamp")
	key := publicKey(r.Header.Get("fluxerlist-key-id"))
	ts, err := strconv.ParseInt(timestamp, 10, 64)
	if id == "" || err != nil || key == nil {
		return false
	}
	if d := time.Since(time.Unix(ts, 0)); d > 5*time.Minute || d < -5*time.Minute {
		return false
	}

	signed := append([]byte(id+"."+timestamp+"."), body...)
	for _, sig := range strings.Split(r.Header.Get("webhook-signature"), " ") {
		if !strings.HasPrefix(sig, "v1a,") {
			continue
		}
		raw, err := base64.StdEncoding.DecodeString(sig[4:])
		if err == nil && ed25519.Verify(key, signed, raw) {
			return true
		}
	}
	return false
}

func main() {
	http.HandleFunc("POST /fluxerlist", func(w http.ResponseWriter, r *http.Request) {
		body, err := io.ReadAll(io.LimitReader(r.Body, 1<<20))
		if err != nil || !fromFluxerList(r, body) {
			w.WriteHeader(http.StatusUnauthorized)
			return
		}
		var event struct {
			Type string `json:"type"`
			Data struct {
				IsRepeat bool `json:"is_repeat"`
				Voter    struct {
					FluxerID string `json:"fluxer_id"`
				} `json:"voter"`
			} `json:"data"`
		}
		if json.Unmarshal(body, &event) != nil {
			w.WriteHeader(http.StatusBadRequest)
			return
		}
		w.WriteHeader(http.StatusNoContent)

		if event.Type == "bot.voted" && !event.Data.IsRepeat {
			// ...reward event.Data.Voter.FluxerID, once per webhook-id
		}
	})
	http.ListenAndServe(":3000", nil)
}
```

## Retries and turning off

Answer with any `2xx` within 10 seconds to mark a delivery done. Do slow work after you've answered. FluxerList keeps at most the first 4 KB of your response for the delivery log.

If a delivery fails, FluxerList tries again after 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours and 18 hours, give or take 20%. That's 7 attempts over about 25 hours, all with the same `webhook-id`.

* **`429` or `503` with `Retry-After`:** FluxerList waits as long as you ask, but no longer than the next step in the schedule.
* **`410 Gone`:** the endpoint is turned off straight away.
* **`3xx`:** a failure. Redirects aren't followed.
* **3 days of failures:** if nothing has succeeded for 3 days, the endpoint is turned off. Your other live endpoints get `webhook.endpoint_disabled`, and the FluxerList bot sends you a DM.

At most 4 deliveries are in flight to one endpoint at a time, so a burst of votes can't flood your server.

To turn an endpoint back on, choose **Turn on** in the dashboard. It sends a test first and goes live again once that passes.

## Signing keys

FluxerList signs with one Ed25519 key at a time. Each key is published at the public key endpoint before it's used, and stays published for 30 days after it's replaced, so a cache that's up to an hour old still verifies. If a request names a `fluxerlist-key-id` you don't have, fetch the keys again before rejecting it.

## Delivery log

Choose **Delivery log** on an endpoint in the Developer tab to see its deliveries from the last 7 days (14 on Developer+), newest first. Filter by status or event, and choose **Inspect** to see the exact request FluxerList sent next to the first 4 KB of your server's response.

**Redeliver** sends a delivery again with the same `webhook-id`, so your duplicate check still recognises it. It works on any delivery still in your log while the endpoint is live, but not on `webhook.test`; use **Send test** for that. Event bodies are kept for 30 days, after which only the id, type and result remain.

## Allowlisting IP addresses

FluxerList doesn't publish a fixed list of addresses that webhooks come from, and they can change without notice, so don't allowlist by IP. Check the [signature](#verify-the-signature) on every request instead: it proves the request came from FluxerList wherever it was sent from. If your endpoint is behind Cloudflare, deliveries also carry a [Web Bot Auth](/webhook-sender#web-bot-auth) signature that Cloudflare can check.