> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/cs_fundamentals/webhook.md).

# Webhook

Instead of pulling the data like an API, a webhook is when the provider pushes the data to you by sending a post request.

Good for:

* When events can happen at anytime, like payment authorization takes days

Authentication

* Stripe signs requests
* Pass secrets or tokens like GitHub
* Api Key stored by provider
