Skip to content

Webhook URLs, secrets and signatures

Why a webhook URL should stay private, and how a signing secret helps a receiving app check that a message really came from the sender.

Last reviewed 1 December 2026

A webhook URL is an address. A signing secret is a shared password that helps prove a message came from who it says. They do different jobs, and both should stay private.

Two different private detailsThe URL says where to sendThe secret helps prove who sentStore each one carefully
Keep both out of public view.

Why the URL is worth guarding

The receiving app has no face to look at. It only sees a message arrive at an address. If a stranger gets hold of that address, they can try sending messages to it too.

That's the reason Wikipedia says the incoming POST request should be authenticated to avoid a spoofing attack.1 Spoofing means pretending to be someone else. A fake message could set off your workflow just like a real one.

Some tools make the address hard to guess. n8n, for example, fills its path field with a randomly generated webhook URL path by default, to avoid conflicts with other webhook nodes.2 Notice what the reason is there: avoiding clashes, not security. Don't treat a random-looking address as a lock.

What's in a URL

Zapier's pages show that a URL can carry details about you. For its Catch Hook triggers, the URL only changes if the Zap is transferred to another user, because the URL contains the owner's Zapier ID.3 There's another reason to keep a record of where each URL is pasted. Zapier says that if a Zap is turned off or deleted, it will return a 404 response. The page adds that this can take up to several hours to start.3 A 404 is the web's "nothing here" message. So a forgotten URL pasted into an old app can quietly fail.

Ways to check the sender

Wikipedia lists several methods. A webhook can include information about the type of event, and a shared secret or digital signature to verify the webhook.1 It also notes that HTTP basic authentication can be used.1

Two terms to unpack:

  • Shared secret. A private phrase known to both the sender and the receiver, and nobody else.
  • Signature. A short code the sender attaches to each message. It's made using the message and the secret together.

Wikipedia says an HMAC signature can be included as an HTTP header. It names GitHub, Stripe, Facebook and SignNow as users of the technique.1 A header is extra information that travels beside the message, like the stamps on an envelope.

How a signed message is checkedSender adds a signature to the messageYour tool gets the message and signatureIt checks them against the shared secretOnly a match gets through
A signature lets the receiver test who sent a message.

The idea is that the receiver can test the signature against the secret it holds. A message that fails the test shouldn't be trusted.

Stripe's documentation shows this in practice. A handler verifies the request is generated by Stripe, and if verification fails, you get an error.4 Stripe also says it requires the raw body of the request to perform signature verification, and that any manipulation to the raw body causes the verification to fail.4

Simpler checks in no-code tools

Signatures aren't the only check. n8n says you can require authentication for any service calling your webhook URL, and its choices include Basic auth and Header auth.2

Whether the sending app can supply what your tool asks for is up to the sending app. Look at its webhook settings or its help pages.

What not to rely on

Wikipedia mentions that a sender may keep a fixed list of addresses it sends from. It adds that this is not a sufficient security measure on its own.1 One safeguard shouldn't carry the whole load.

Also, Stripe says registered webhook endpoints must be publicly accessible HTTPS URLs.4 HTTPS is the web's scrambled, safer version of HTTP. "Publicly accessible" is exactly why checking the sender matters.

Keeping both private

  • Don't paste a URL or secret into an AI chat, a public post or a screenshot.
  • Store secrets in the tool's own settings area, not in a document anyone can open.
  • Write down which app holds which URL.

If you're after the other kind of secret, see the page on API keys. And for what's inside the message itself, try the page on JSON and payloads.

Further reading and sources

  1. Webhook, Wikipedia
  2. Webhook node, n8n Docs
  3. Trigger Zap workflows from webhooks, Zapier Help Center
  4. Receive Stripe events in your webhook endpoint, Stripe Documentation