# Webhook

> A webhook is an automatic message one app sends another when something happens, like a new booking or payment. See how webhooks work, with examples.

Canonical URL: https://crevio.co/glossary/webhook

## What is a webhook?

A webhook is an automatic message that one app sends to another the moment something happens, such as a new order, a paid invoice or a booked appointment. The sending app posts the details to a web address you give it, and the receiving app acts on them right away. Webhooks are how many business tools stay in sync without anyone copying data by hand.

## How a webhook works

1. **You give App A a web address** (the "webhook URL" or "endpoint") that belongs to App B.
2. **You choose the events** App A should report, such as "payment succeeded" or "form submitted."
3. **The event happens.** A customer pays, books or signs up.
4. **App A sends the details** to the web address, usually as a small block of data (JSON).
5. **App B acts on it:** adds the customer to a list, creates a record, sends a text or starts a job.

A simple way to think about it: a webhook is a doorbell. Instead of checking the porch every five minutes, you get notified when someone arrives.

## Webhook vs API

| | Webhook | API |
|---|---|---|
| Who starts it | The app where the event happened pushes data out | Your app asks for data when it needs it |
| Timing | Right when the event happens | Whenever you request it |
| Typical use | "Tell me when something happens" | "Give me this record" or "create this record" |
| Setup | Paste a URL and pick events | Write code or use a connector that calls it |

Most integrations use both. A webhook says "a new order came in," and the receiving app may then call the API for the full details.

## Examples for small businesses

- **Plumber:** when a customer pays an [invoice](/glossary/invoice), a webhook from the payment provider marks the job paid in the scheduling tool.
- **Salon:** when someone books online, a webhook adds them to the [CRM](/glossary/crm) and starts an [appointment reminder](/glossary/appointment-reminder) sequence.
- **Cleaning company:** when the website quote form is submitted, a webhook posts the [lead](/glossary/lead) to a team Slack channel.
- **Course seller:** when a purchase succeeds, a webhook adds the buyer to an [email list](/glossary/email-list) segment and sends a [welcome email](/glossary/welcome-email).
- **Membership:** when a subscription is canceled, a webhook removes the member's access to a private community.

## Common webhook events

- Payment succeeded, failed or refunded
- [Chargeback](/glossary/chargeback) opened
- Subscription created, renewed or canceled
- Form submitted or new contact created
- Appointment booked, rescheduled or canceled
- Call ended or text received

## Do you need a developer?

Not always. Many tools let you paste a webhook URL from another tool and pick events from a list. Connector services like Zapier and Make can receive webhooks and pass the data on to thousands of apps without code. For custom logic, or when you need to verify that a webhook really came from the sender, a developer helps.

## Best practices

- **Use HTTPS addresses only** and keep webhook URLs private.
- **Verify signatures.** Many senders sign each message with a secret so you can confirm it is genuine.
- **Expect duplicates.** Senders retry when they get no answer, so the same event can arrive twice. Make sure a repeated "payment succeeded" does not double-book a job.
- **Respond quickly.** Acknowledge the message first, then do slow work afterward.
- **Watch for failures.** Most senders show a delivery log. Check it when data stops showing up.
- **Treat incoming data as untrusted.** Validate it before acting on it.

Webhooks are a building block of [automation](/glossary/automation). AI tools increasingly connect to apps through standards like [MCP](/glossary/mcp) as well, but webhooks remain the common way apps announce events.

## How Crevio handles webhooks

In Crevio, a scheduled job can start when a webhook arrives: save the job and its page shows a private address that starts a run whenever data is sent to it. Account admins can also send Crevio events, such as finished calls and job runs, to other tools from **Settings > Developer > Webhooks**, which needs a paid [plan](https://crevio.co/docs/features/plans). See [Automation](https://crevio.co/docs/features/automation).
