What is a webhook?
A webhook is a message one service sends to your address the moment something happens: a payment goes through, a form is filled in, an order arrives. You don't ask for it. It comes to you.
Try it on your own project
Choose AI Claude CodeCodexGoogle AntigravityCursorVS CodeAnother AI
Claude Code can add BitHut by itself. Paste this into it:
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
Then restart Claude Code, type /mcp, pick bithut and sign in: sign in to BitHut in your browser and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the command yourself
Run this command in a terminal.
claude mcp add --transport http bithut https://api.bithut.app/mcp
Start Claude Code, type /mcp, pick bithut and sign in. Sign in to BitHut in your browser and press Allow.
Already added BitHut in Claude, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code.
Codex can connect BitHut by itself. Paste this into it:
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
A page opens in your browser: sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the commands yourself
Run these two commands.
codex mcp add bithut --url https://api.bithut.app/mcp codex mcp login bithut
The second one opens a page in your browser. Sign in to BitHut and press Allow.
Antigravity can add BitHut by itself. Paste this into its agent:
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
When Antigravity asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.
Under “mcpServers”, add this line and save the file.
"bithut": {"serverUrl": "https://api.bithut.app/mcp"}
When Antigravity asks, sign in to BitHut and press Allow.
Cursor can add BitHut by itself. Paste this into its chat:
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
Then open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.
"bithut": {"url": "https://api.bithut.app/mcp"}
Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.
Choose HTTP, paste this address and name the server bithut.
https://api.bithut.app/mcp
When VS Code asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
Add a remote (HTTP) server with this address.
https://api.bithut.app/mcp
If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”
Copy the prompt into it: Make a webhook receiver for my Stripe payments on BitHut
The short answer
A webhook is an automatic message from one service to another. You give a service (Stripe, Tally, Shopify, GitHub) an internet address. When an event happens on their side, they send a short note about it to that address, usually as JSON over HTTPS. Your program at that address reads the note and does something: adds a row to a sheet, sends you a Telegram message, saves an order.
GitHub puts it this way: webhooks deliver notifications “to an external web server whenever certain events occur” (GitHub).
An everyday analogy
Think of a parcel delivery.
- Without a webhook you open the tracking page every ten minutes to see if the parcel has arrived. That is asking, again and again.
- With a webhook the courier rings your doorbell when the parcel is there. You gave your address once, and you hear about it the moment it happens.
The doorbell only works if someone is home. That is the whole difficulty with webhooks, and most of this page is about it.
Webhook vs API
Both move data between services. The difference is who starts the conversation.
| API | Webhook | |
|---|---|---|
| Who starts | your program asks the service | the service tells your program |
| When | whenever your program asks | the moment the event happens |
| Direction | pull | push |
| What you need | a key to the service | a public address that is always on |
| Typical use | “give me last week’s orders” | “an order just came in” |
GitHub describes the API way as polling, “calling an API intermittently”, while with a webhook you express interest once, when you create it (GitHub). In practice many projects use both: the webhook says something happened, then the program calls the API for the full details.
Real examples
Each link goes to the service’s own webhook documentation, checked 22 November 2026.
- Stripe, a payment. When a customer’s bank confirms a payment or a charge is disputed, Stripe sends an event such as
invoice.paidto your address (Stripe). - Tally, a form. The trigger is a new form submission, and Tally webhooks are free for all Tally users (Tally).
- Typeform, a form. Each new response is sent to your address right away (Typeform).
- Shopify, an order. The
orders/createtopic fires when an order is created in a shop (Shopify). - GitHub, a push. GitHub notifies your server when code is pushed, an issue is opened and so on (GitHub).
- Telegram, a bot. A bot gets new messages either by asking Telegram (
getUpdates) or through a webhook; the two are “mutually exclusive” (Telegram Bot API).
A note on Discord. A Discord webhook works the other way round. Discord calls it “a low-effort way to post messages to channels”: you send a message to Discord’s address, and it appears in a channel (Discord). So with Discord you are the sender, not the receiver. You don’t need a server for that.
Are webhooks free?
Sending is usually part of the service: Tally, for example, includes webhooks on every plan (Tally). What costs money is the receiving end, the address that has to be up day and night. That can be a free tier of a tool, a paid automation plan or a hosting plan. The options are below.
What you need to receive one
These rules come straight from the services that send webhooks.
- A public HTTPS address. Stripe requires HTTPS in live mode (Stripe). Telegram requires an HTTPS address on port 443, 80, 88 or 8443 (Telegram).
- Always on. The message comes when the event happens, not when it suits you.
- A quick answer. Reply “OK” (any 2xx status) first, do the slow work after. Stripe says to return a 2xx “before any complex logic” (Stripe). GitHub gives you 10 seconds (GitHub), Tally 10 seconds (Tally), Typeform 30 seconds (Typeform).
- Check the signature. Anyone who learns your address can send it fake data. Stripe signs every event in the
Stripe-Signatureheader, and you check it with a signing secret that starts withwhsec_(Stripe). Shopify usesX-Shopify-Hmac-Sha256(Shopify), TallyTally-Signature(Tally), TelegramX-Telegram-Bot-Api-Secret-Token(Telegram). Keep the secret with your keys, not in the code. - Expect retries. If your address doesn’t answer, the sender tries again later. In live mode Stripe keeps trying for up to three days, with growing gaps (Stripe). Tally retries after 5 minutes, 30 minutes, 1 hour, 6 hours and a day, then emails the form owner (Tally). GitHub does not promise to retry; it says to redeliver missed webhooks yourself once your server is back (GitHub).
- Ignore duplicates. The same event can arrive twice. Stripe advises recording the event IDs you have processed and skipping ones you’ve seen (Stripe); Shopify suggests the
X-Shopify-Webhook-Idheader for the same job (Shopify). Otherwise one payment can become two rows in your sheet.
Why your laptop can’t receive them
A laptop at home has no public address. Your router hides it from the internet, so Stripe has nowhere to send the message. The usual fix is a tunnel such as ngrok, which gives your laptop a temporary public address. Its free plan includes 1 GB of outgoing data and one development domain (ngrok pricing, checked 22 November 2026).
A tunnel is fine for testing. It is not a home for a real receiver: when the laptop sleeps, the address stops answering, and events pile up in retries or get lost. More on this in BitHut or your laptop.
Ways to receive webhooks
Prices and limits checked 22 November 2026.
| Option | What it is | Cost to start | Good for |
|---|---|---|---|
| Zapier | catch a webhook, then pick actions in a visual editor | Webhooks by Zapier is not on the Free plan (Zapier help); Professional from $19.99/month billed yearly, $29.99 monthly, 750 tasks (pricing) | simple “when X, do Y” with no code |
| Make | a custom webhook starts a scenario | up to 300 requests per 10 seconds per webhook; unused webhooks switch off after 5 days (Make help) | visual flows with more steps |
| Serverless function | a few lines of code that run only when a request comes | Cloudflare Workers Free: 100,000 requests a day; paid from $5/month (Cloudflare) | people comfortable with code and a cloud console |
| BitHut | your AI writes the receiver and puts it online | from $5/month, see pricing | receivers that save data, use a database, or grow into a bigger project |
Zapier or Make are the better choice when the job is short and standard, such as a new Tally answer to a Google Sheet, and you prefer clicking to code. Comparisons: BitHut or Zapier, BitHut or Make.
A serverless function is the cheapest when you can write and deploy code yourself and the receiver keeps no data of its own.
Receiving webhooks on BitHut
On BitHut a webhook receiver is an ordinary project of the kind “receives data”. You tell your AI what should happen when the message arrives, and it writes and deploys the code.
- A public HTTPS address like
name-account.up.bithut.app, or your own domain. It runs all the time, with no laptop and no tunnel. Sites start private behind a password page, and you open them when you want. - A journal of incoming requests. You and your AI see what actually arrived and when, which is usually the first question when “the webhook doesn’t work”.
- Signing secrets stored apart from the code, like any other key.
- A persistent disk and Postgres, so the receiver can remember which event IDs it has already handled.
- A message to you when it breaks, with a task your AI can use to fix it, plus logs and rollback to an earlier version.
- One price for the account: any number of projects within the plan, and the bill never grows on its own. There is no free plan.
Ready-made starting points: Stripe payments to a sheet, lead intake form, shop orders to Telegram, and the whole category of projects that receive data.
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.