---
title: "Verify webhook signatures | TheBusinessApp Help"
description: "Every webhook is signed with HMAC-SHA256 using the Standard Webhooks scheme. Check the signature and timestamp before trusting a delivery."
url: https://thebusinessapp.co.uk/help/verify-webhook-signatures
---

# Verify webhook signatures

Short answer

Every webhook is signed with HMAC-SHA256 using the Standard Webhooks scheme. Check the signature and timestamp before trusting a delivery.

Updated 17 October 2026 · 1 min read

**On this page**

- How the signature works
- Reveal or rotate the secret

Each delivery carries three headers: `webhook-id`, `webhook-timestamp` and `webhook-signature`. Checking the signature proves the request came from TheBusinessApp and wasn't changed on the way. Code samples for Node, Python and PHP are on the [webhooks developer page](https://thebusinessapp.co.uk/developers/webhooks).

## How the signature works

1. Take your signing secret, remove the `whsec_` prefix and base64-decode the rest. That is the key.
2. Build the string `{webhook-id}.{webhook-timestamp}.{raw body}` using the exact bytes of the request body.
3. Work out HMAC-SHA256 of that string with the key, and base64 the result.
4. Compare it, in constant time, with each space-separated `v1,...` value in `webhook-signature`. One must match.
5. Reject the request if `webhook-timestamp` is more than five minutes from now, to stop replays.

```
const key = Buffer.from(SECRET.replace(/^whsec_/, ''), 'base64')
const expected = crypto.createHmac('sha256', key)
  .update(`${id}.${ts}.${rawBody}`)
  .digest('base64')
```

Important

Verify against the raw body, before any JSON parsing. Re-serialised JSON won't match.

## Reveal or rotate the secret

- Open the endpoint and click **Reveal secret** to see it again.
- Click **Rotate secret** to make a new one. For 24 hours the old secret keeps signing alongside the new one, so `webhook-signature` carries two values while you update your receiver.

Deliveries also include `TBA-Event-Type`, `TBA-Delivery-Id` and `TBA-Delivery-Attempt` headers for logging. The `webhook-id` stays the same across retries and resends.

Was this article helpful?

## Related articles

- [Set up webhooksAPI & webhooks](https://thebusinessapp.co.uk/help/webhooks)
- [Create and revoke API keysAPI & webhooks](https://thebusinessapp.co.uk/help/api-keys)
- [What the API can doAPI & webhooks](https://thebusinessapp.co.uk/help/api-overview)

Still stuck?

Tell us what you were trying to do and which screen you were on, and we’ll walk you through it. Email hello@thebusinessapp.co.uk or [contact support](https://thebusinessapp.co.uk/contact).

Not using TheBusinessApp yet?

Run quotes, jobs, invoices and your website from one app. Bring your customers across from a CSV and switch on only what you need.

[Start free](https://app.thebusinessapp.co.uk/signup?utm_source=marketing&utm_medium=web&utm_campaign=start-free) 14 days free, no card needed. [See pricing](https://thebusinessapp.co.uk/pricing)

API & webhooks

- [Create and revoke API keys](https://thebusinessapp.co.uk/help/api-keys)
- [What the API can do](https://thebusinessapp.co.uk/help/api-overview)
- [Set up webhooks](https://thebusinessapp.co.uk/help/webhooks)
- [Verify webhook signatures](https://thebusinessapp.co.uk/help/verify-webhook-signatures)
- [API rate limits and errors](https://thebusinessapp.co.uk/help/api-rate-limits)
- [Connect Zapier, Make or other automation tools](https://thebusinessapp.co.uk/help/connect-zapier-or-make)
- [All 6 articles](https://thebusinessapp.co.uk/help/topic/api)

[Open the app](https://app.thebusinessapp.co.uk/login)
