What is a webhook?
Definition
A webhook is an automatic HTTP request that one system sends to another when an event happens, so the receiving system can react right away without checking for changes.
Why it matters
Webhooks connect tools in real time. They are the simplest way to turn events in your product into actions elsewhere.
How to do it
- The receiving system gives you a unique URL.
- Your system sends a request with event data to that URL when something happens.
- A shared secret or signature proves the request really came from you.
Example
AgentMio data feeds give each brand a webhook URL and secret. An app sends a release event, and AgentMio drafts posts about it.
Webhook vs. API
With an API, you ask for data or send commands when you want. With a webhook, data is pushed to you when an event happens.
FAQ
How do I keep a webhook secure?
Keep the URL and secret on your server, send the secret or a signature with each request, and never expose them in a browser or app.