Skip to main content
Anyone who knows your webhook URL can send it a request. Check the secret before you trust one.

What Followr sends

The company’s secret, as is, in the X-Company-Secret header:
  • Not a signature. The body isn’t signed and has no timestamp. Compare the header with your stored secret, and parse the JSON as usual.
  • 32 letters and digits, the same on every request, unique to the company.
  • Find it in Company settings > Webhooks, or in webhook_secret from GET /companies/{id}.
Anyone who sees one request can send fake ones that pass, and the secret can’t be changed. Use https://, never log headers, and make your handler idempotent: replays aren’t blocked.

Verify a request

1

Read the header

Reject the request if X-Company-Secret is missing or empty.
2

Compare in constant time

A plain == or === stops at the first different character, which leaks how much of a guess was right.
3

Answer

No match: 401, and ignore the body. Match: 200, then process the event.
The examples read the secret from the FOLLOWR_WEBHOOK_SECRET environment variable.

One URL for several companies

Compare the header with each company’s secret in constant time. The match tells you the company; no match means 401.
Python

Test your endpoint

Replace YOUR_WEBHOOK_SECRET with your secret. Expect 200, and 401 with any other value.

Troubleshooting

The URL was set when the company was created, so there’s no secret. Remove the URL (Remove in the app, or "webhook_posts_url": null in PUT /companies/{id}), set it again, then read webhook_secret.
Check you stored this company’s secret. Copy it again, with no spaces or line breaks around it.
Contact support. Until it’s replaced, read the post with GET /posts/{id} before you act on a request.
Last modified on December 2, 2026