Guide to Whatnot Webhooks: Features and Best Practices
Whatnot webhooks tell your systems what is happening in a seller's store: an order is placed or cancelled, a show is scheduled and goes live, a product changes, a shipping label is generated. If you are building an app on the Whatnot developer platform, the API behind the live-shopping marketplace, webhooks are how that activity reaches your inventory, fulfilment and reporting systems without polling.
This guide covers how Whatnot webhooks are delivered and signed, the 18 documented topics and the scopes they need, the delivery guarantees that shape your handler, and the best practices for running a Whatnot receiver in production.
What are Whatnot webhooks?
A Whatnot webhook is an HTTPS POST to an endpoint you register, with a JSON body. Whatnot follows the Standard Webhooks specification, so verification is the same computation you may already know from Svix-backed platforms, and the open-source Standard Webhooks libraries check it for you.
Every delivery carries three signing headers: webhook-id, webhook-timestamp and webhook-signature. The signature is an HMAC-SHA256 over the string {webhook-id}.{webhook-timestamp}.{body}, base64 encoded, keyed with your app's webhook secret. Whatnot adds one wrinkle of its own: the secret in your developer dashboard is prefixed wn_wh_, and that prefix has to come off before the secret reaches a library.
The topic name is in the body, under type, rather than in a header. Whatnot's topic table is explicitly not exhaustive, so new topics can appear.
Whatnot webhook features
| Feature | Details |
|---|---|
| Configuration | Per client app in the Whatnot developer dashboard: register a URL, choose topics. No REST endpoint for managing subscriptions |
| Signature header | webhook-signature: v1,<base64 digest>, space separated if there is more than one |
| Scheme | Standard Webhooks: HMAC-SHA256, base64 |
| Signed content | {webhook-id}.{webhook-timestamp}.{raw body} |
| Secret | One per app, from the developer dashboard, prefixed wn_wh_ and base64 after the prefix |
| Replay window | 5 minutes against the webhook-timestamp header |
| Other headers | webhook-id (stable across retries), webhook-timestamp (new on each attempt), Content-Type: application/json |
| Routing | The type field in the body. There is no event-type header |
| Scopes | Every topic requires one, held by both your app and the seller's installation |
| Success response | Any 2xx, within a 5-second timeout |
| Retries | Exponential backoff, up to 11 attempts over roughly 2.5 days, then permanently failed |
| Persistent failure | Delivery rate is reduced, you are emailed, and the subscription is eventually removed |
| Ordering | None guaranteed, including across retries |
| SDK | Standard Webhooks libraries for JavaScript, Python, Go, Ruby, PHP and C# |
No source IP allowlist is published, so the signature is the only credential.
Common events
Whatnot documents 18 topics across five domains, each with its own page in the webhooks reference and each gated on a scope. Route on the body's type field.
| Topic | Sent when | Scope |
|---|---|---|
orders.created | An order was placed, or for an offer, the seller accepted it | read:orders |
orders.updated | An order's status changed after it was placed, such as cancelled or completed | read:orders |
shows.created | A seller scheduled a show. Rehearsals are not sent | read:shows |
shows.updated | A show changed, such as its title, start time or visibility. Every update is sent, even one that only changed updated_at | read:shows |
shows.started | A show went live, including a stopped show resuming | read:shows |
shows.ended | A show ended, including when Whatnot ended an abandoned show | read:shows |
shows.cancelled | A show was cancelled | read:shows |
merchandising.products.added_ | A product was added to a show | read:merchandising |
merchandising.products.removed_ | A product was removed from a show, including when its listing was deleted | read:merchandising |
shipments.created | A shipment was created for an order | read:shipments |
shipments.label_ | A shipping label was generated or regenerated | read:shipments |
shipments.tracking_ | A shipment got a tracking code, from a purchased label, the seller's own label or a replacement | read:shipments |
shipments.parcel_updated | The seller changed a shipment's parcel weight or dimensions | read:shipments |
shipments.items.added | Items were added to a shipment, when orders were bundled at checkout or the seller bundled shipments | read:shipments |
shipments.items.removed | Items were removed from a shipment when it was split | read:shipments |
products.created | A product was created | read:inventory |
products.updated | A product changed, including its variants, inventory or prices. The payload does not say which fields changed | read:inventory |
products.deleted | A product was deleted | read:inventory |
Whatnot says new topics may be added over time, so acknowledge an unrecognised type with a 2xx and log it rather than erroring.
Every topic uses the same envelope:
{
"type": "shows.started",
"timestamp": "2026-10-20T16:00:00.123Z",
"data": { "show_id": "9b2f6c1e-4d3a-4f8b-a1c2-3d4e5f6a7b8c" },
"version": "v2",
"seller_id": "1234567"
}
| Field | What it holds |
|---|---|
type | The topic, such as orders.created. Route on this |
timestamp | When the event happened, ISO 8601 UTC with millisecond precision. Stable across retries, unlike the webhook-timestamp header |
data | The topic's payload. Most topics send the same object the REST API returns, such as an order |
version | The payload version, currently v2 |
seller_id | The seller the event belongs to. It is inside the signed body, so the signature vouches for it too |
A handful of fields are gated on the read:customers scope and arrive as null without it: buyer on the order topics, and recipient, destination_address and documents on the shipment topics. Destination addresses and shipping documents also need customer-address access, which private apps have and public apps get once Whatnot approves them.
Setting up Whatnot webhooks
- Open the Whatnot developer dashboard and select the client app that will receive the events.
- Register the URL that will receive the
POSTrequests and choose the topics you want delivered to it. - Confirm your app holds the scope each topic needs, and that the seller's installation of your app holds it too. If either side is missing the scope, that seller's events are not delivered at all.
- Copy the webhook secret from the dashboard and store it server side, for example as
WHATNOT_WEBHOOK_SECRET. It starts withwn_wh_. - Add
read:customersif you need buyer details, recipients, destination addresses or shipping documents.
There is no REST endpoint for managing subscriptions, so each environment's URL is set by hand in the dashboard. Registering a stable gateway URL and moving the destination behind it saves a round trip through the dashboard every time your receiver moves.
Securing Whatnot webhooks
Hand the raw request body and the request headers to a Standard Webhooks library and let it do the rest: it rebuilds {webhook-id}.{webhook-timestamp}.{body}, computes the base64 HMAC-SHA256, compares every v1, entry in webhook-signature in constant time, and rejects a webhook-timestamp more than five minutes from your clock. The one thing it will not do for you is strip the wn_wh_ prefix from your secret, so do that first.
const express = require('express');
const { Webhook } = require('standardwebhooks');
// Libraries strip their own whsec_ prefix, never Whatnot's wn_wh_.
const secret = process.env.WHATNOT_WEBHOOK_SECRET?.replace(/^wn_wh_/, '');
const wh = secret ? new Webhook(secret) : null;
const app = express();
app.post('/webhooks/whatnot', express.raw({ type: 'application/json' }), (req, res) => {
if (!wh) return res.sendStatus(500); // fail closed
let event;
try {
// req.body is a Buffer here: the exact bytes Whatnot signed.
event = wh.verify(req.body, {
'webhook-id': req.get('webhook-id'),
'webhook-timestamp': req.get('webhook-timestamp'),
'webhook-signature': req.get('webhook-signature')
});
} catch (err) {
return res.sendStatus(400);
}
// Persist under the webhook-id header, then process event.type and event.data async.
res.sendStatus(204);
});
The same handler in Python, with FastAPI:
import os
from fastapi import FastAPI, Request, Response
from standardwebhooks.webhooks import Webhook, WebhookVerificationError
secret = os.environ["WHATNOT_WEBHOOK_SECRET"].removeprefix("wn_wh_")
wh = Webhook(secret)
app = FastAPI()
@app.post("/webhooks/whatnot")
async def whatnot_webhook(request: Request):
raw_body = await request.body() # read before anything parses it
try:
event = wh.verify(raw_body, dict(request.headers))
except WebhookVerificationError:
return Response(status_code=400)
# Queue event["type"] and event["data"], then respond.
return Response(status_code=204)
If no library fits your stack, Whatnot documents the manual computation: base64-decode the key that follows the prefix, build {webhook-id}.{webhook-timestamp}.{raw body}, take the HMAC-SHA256, base64-encode it, and compare it in constant time against each space-separated v1, entry, rejecting any delivery whose webhook-timestamp is more than five minutes from your clock. Whatnot publishes a signed example delivery alongside the secret that produced it, so a hand-rolled implementation can be tested against a known-good vector before it sees live traffic.
The five-minute window assumes the request comes straight from Whatnot, which re-signs every retry with a fresh webhook-timestamp. A retry or replay from a gateway in front of your receiver resends the original headers, so it fails the window once five minutes have passed. Behind Hookdeck, rely on the source's signature verification and leave the window out of your handler, or widen it to cover your retry schedule.
Make Whatnot webhooks production-ready. Hookdeck Event Gateway verifies the Standard Webhooks signature, answers Whatnot inside its 5-second window, and durably queues every order, show and shipment event before your service sees it.
Whatnot webhook limitations and pain points
The secret prefix breaks verification silently
The Problem: Every signature check fails, with nothing in the error to suggest the secret is at fault.
Why It Happens: Standard Webhooks libraries strip their own whsec_ prefix and nothing else, so they read wn_wh_ as the first six characters of the base64 key. Whatnot notes that some of them, including the Python and Ruby libraries, then decode a wrong key without raising anything. The library looks healthy and disagrees with every signature.
Workarounds:
- Strip the prefix where you load the secret rather than at the call site, so a second handler cannot miss it.
- Verify against Whatnot's published example delivery and its matching secret before you go near live traffic. A misconfigured or hand-rolled implementation fails that vector immediately.
- Log the first few characters of the key you actually pass to the library when a check fails. A prefix left on shows up immediately.
How Hookdeck Can Help: You paste the secret into Hookdeck's Whatnot source configuration once, wn_wh_ prefix included, and Hookdeck verifies every delivery before it reaches your service, so no application code holds the key or the prefix-stripping step.
A failing endpoint gets unsubscribed, not just retried
The Problem: An outage does not only cost you the events in flight. It can cost you the subscription, so events stop arriving even after your service is healthy again.
Why It Happens: Whatnot reduces the delivery rate to an endpoint that is not answering with a 2xx, emails you a warning, and removes the subscription entirely if the failures continue. Re-subscribing is a manual trip to the developer dashboard.
Workarounds:
- Alert on the warning email rather than treating it as noise. It is the only notice before the subscription goes.
- Answer
2xxfrom something that does not depend on your application being up, so a deploy or a database incident is not a delivery failure. - After a removal, re-subscribe in the dashboard and reconcile from the REST API for the whole period, not just the retry window.
How Hookdeck Can Help: Hookdeck answers Whatnot as soon as a delivery arrives, so your own downtime never registers as an endpoint failure, and retries to your service run on a schedule you set.
Five seconds to answer
The Problem: A handler that verifies, writes to a database and calls a third-party service inside the request can exceed Whatnot's timeout under normal load, and a timed-out delivery counts as a failed one.
Why It Happens: Whatnot times out at 5 seconds and treats a timeout the same as an error status. Everything you do before responding counts against that budget, including anything slow in the verification path.
Workarounds:
- Verify, persist the raw body, respond, and do the real work in a background job.
- Keep the verification path free of network calls, such as fetching the secret from a remote store on every request.
- Watch
p99latency on the endpoint rather than the mean. The timeout bites on the slow tail.
How Hookdeck Can Help: Hookdeck absorbs the deadline on your behalf and can deliver at a rate your service actually sustains, so a slow handler produces queue depth instead of retries.
Arrival order tells you nothing
The Problem: Applying events as they arrive can leave your copy of an order or a show behind the real one, or ahead of it.
Why It Happens: Delivery is at-least-once with no ordering guarantee, and retries stretch over days, so an orders.updated can land before the orders.created for the same order. shows.updated fires for every change, including one that only moved updated_at.
Workarounds:
- Reconcile on the payload's
timestampor the resource's own state, never on arrival order. - Make your writes idempotent and last-write-wins by event timestamp, so a late retry cannot overwrite newer state.
- Treat a notification as a trigger to read current state from the REST API when the payload alone is not enough.
How Hookdeck Can Help: Hookdeck keeps every delivery with its headers and raw body, so an out-of-order sequence can be inspected and replayed in the order you want once you understand it.
Update topics do not say what changed
The Problem: A products.updated handler has to diff against your own copy to work out what the seller actually did.
Why It Happens: Whatnot states that the products.updated payload does not say which fields changed, even though it covers variants, inventory and prices. The same pattern applies to shows.updated.
Workarounds:
- Keep your own last-known copy of each product and show and diff on receipt, rather than reacting to the topic alone.
- Guard expensive downstream work, such as a repricing run, behind a check that the fields you care about actually moved.
- Handle unknown fields gracefully, since Whatnot adds payload fields over time.
How Hookdeck Can Help: Hookdeck filters let you route each topic to its own destination, so a noisy update topic can go to a consumer built for diffing while the rest of your events flow straight through.
Best practices
Verify against the raw body
The signature covers the exact bytes Whatnot sent. In Express, mount express.raw({ type: 'application/json' }) on the webhook route and parse only after verification. In Next.js route handlers, read await request.text(). In FastAPI, read await request.body(). Parsing and re-serialising the JSON can reorder keys or change whitespace, and the signature will not match.
Strip the wn_wh_ prefix once, where you load the secret
The signing key is the base64 string that follows wn_wh_, and the library decodes it for you. Strip the prefix at the point you read the environment variable, so every handler sharing that secret gets the same treatment and the failure mode cannot return when someone adds a second endpoint.
Deduplicate on webhook-id
Retries resend the same webhook-id, so the same event can arrive more than once. Store the id before you process and skip anything you have already seen. That gives you exactly-once processing on top of at-least-once delivery, and it turns away a replayed delivery as well. See our guide to webhook idempotency.
Acknowledge quickly and process asynchronously
Verify, persist the raw body, return a 2xx, and do the real work afterwards. Five seconds is the whole budget, and a timeout is treated as a failure, which pushes you toward both duplicates and the rate limiting that precedes an unsubscribe. See why to process webhooks asynchronously.
Check the timestamp header, not just the signature
A signature stays valid indefinitely on its own, which is why the specification signs webhook-timestamp alongside the body. The libraries enforce the five-minute window for you. If you verify by hand, implement that check too, and use the header rather than the envelope's timestamp: each attempt is signed afresh with a new webhook-timestamp, so a legitimate retry days later still passes.
Reconcile against the REST API
Webhooks are a notification mechanism, not a guaranteed event log. If your endpoint is down past the retry window, or the subscription is removed, those events are gone. Run a periodic reconciliation against the REST API, listing recent orders or shipments, so you find a gap before a seller does.
Use seller_id in multi-seller apps
seller_id sits inside the signed envelope, so the signature vouches for it. If your app serves more than one seller, resolve the account from it before you touch any data, and store it alongside each event.
Conclusion
Whatnot signs every delivery to the Standard Webhooks specification: a base64 HMAC-SHA256 over {webhook-id}.{webhook-timestamp}.{body}, carried as space-separated v1, entries in webhook-signature, keyed with the base64 string that follows wn_wh_ in your dashboard secret. Verify against the raw bytes with a Standard Webhooks library, route on the body's type, deduplicate on webhook-id, and answer inside five seconds, because a slow endpoint is first rate limited and then unsubscribed.
Hookdeck Event Gateway sits in front of your receiver, verifies every signature, and holds each event until your service has processed it, so an outage on your side costs latency instead of orders and a subscription.
Get started with Hookdeck for free and handle Whatnot webhooks reliably in minutes.