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.
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.
- 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
POSTrequests.
Plans
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.
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 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.
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.
Developer sign-ups, endpoint changes and API key actions are recorded in an audit log for security and abuse prevention. See the Privacy Policy 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
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.
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.
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
You can subscribe to exact event names. On Developer+ you can also use patterns:
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:
Run a website and seeing FluxerList-Webhooks traffic? FluxerList Webhooks bot explains what it sends and how to verify it.
The body always has the same envelope. data depends on the event - the webhook reference has the full schema and required fields for every event type.
Fluxer ids are strings. Don’t parse them as numbers, because they’re too large for many languages’ number types.
Vote fields
votes_totalis the listing’s vote count after this vote.is_repeatistruewhen 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’sfalse.last_voted_atis when they last voted for this listing, ornull.- After removing a vote, a person has to wait 2 minutes before voting for the same listing again.
from_serverandfrom_server_verifiedare reserved for vote links that credit a server. They’renullandfalsefor now.- Server events use
serverwithid,fluxer_guild_id,slugandname. Theme events usethemewithid,slugandname.
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
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.
- 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. - Build the signed text: the
webhook-idheader, a., thewebhook-timestampheader, a., and the raw request body exactly as received. - Take each signature in
webhook-signaturethat starts withv1a,, base64-decode the rest, and check it against the key whoseidmatchesfluxerlist-key-id. One valid signature is enough. - Reject the request if
webhook-timestampis more than 5 minutes from your clock. - Store
webhook-idand 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:
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.
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.
429or503withRetry-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 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 signature that Cloudflare can check.