> For the complete documentation index, see [llms.txt](https://docs.usegravity.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usegravity.app/gravity-server/rest-api/webhooks.md).

# Webhooks

Gravity has API routes and a `webhookController` pre-configured for you to start accepting webhooks from external services and APIs.

A Stripe webhook handler is included for you and is used to handle accounts [downgrading their plan to free](/gravity-server/free-accounts.md#downgrading-to-free) at the end of their current billing cycle.&#x20;

Please refer to the Stripe documentation for the latest information on testing [Stripe webhooks](https://docs.stripe.com/webhooks).
