# Subscription Bot Webhooks Overview

> Configure outbound webhooks to receive real-time HTTP POST notifications of platform events on your custom server or database.

Source: https://docs.botsubscription.com/webhooks/overview/

Outbound webhooks allow you to connect your custom external applications, websites, databases, or third-party CRM systems with BotSubscription. By listening for real-time HTTP `POST` notifications, your backend server can react immediately when members subscribe, make payments, or lose access.

If you use a **Telegram subscription bot** or a **Discord subscription bot** to manage and monetize your private community, webhooks provide the bridge to synchronize this activity with your own internal infrastructure.

---

## Delivery Model

* **Per-Project Isolation:** Every webhook endpoint is strictly tied to a single parent project. Your external receiver URL only receives events produced within that specific project, with no cross-project leakage or global fan-out.
* **Asynchronous Delivery:** Notifications arrive independently of the checkout response. A completed API request does not confirm that your receiver has received the event.
* **At-Least-Once Delivery:** We aim to deliver every event to your server at least once. Transient failures are retried on a capped backoff schedule — see [Deduplication & Retries](https://docs.botsubscription.com/webhooks/delivery-retries/) for the full policy.
* **Unordered Delivery:** Events from independent operations may arrive out of chronological order. We recommend using timestamps to reconcile state.

---

## Registering Webhook Endpoints

You can register, test, and manage your endpoint URLs directly within the **Developer** section of your BotSubscription dashboard, or programmatically using our developer routes.

When configuring webhooks:
* Register endpoints with a publicly reachable HTTPS URL, including during development.
* Localhost, loopback, private and reserved addresses are blocked. Hostnames are checked at registration and delivery.
* Redirects are not followed. Configure the final receiver URL and path directly.
* The system provides a unique signing secret only at creation. Store it immediately; endpoint listings omit it.
* You can manage your endpoints programmatically via the [Webhook API Reference](https://docs.botsubscription.com/api/integrations/create-webhook/).

---

## API-key access

Payment, membership, and subscription event feeds require an unrestricted project API key. Restricted keys cannot subscribe to these project-wide feeds, even with `webhooks:create`. Restricted keys with `webhooks:delete` can delete an endpoint.

Listing and testing endpoints require an unrestricted project API key. Restricted keys receive `403 FORBIDDEN` on those operations, regardless of their scopes.

## Select subscription bot events

Registration accepts an optional `events` array of exact names or family selectors, such as `["payment-request.completed", "subscription.renewal-held"]`. Omit it to select all families available to the key: `payment-request.*`, `membership.*`, and `subscription.*`.

The creator's event access is stored at registration time. Later permission changes do not revoke the feed; delete the registration when an integration should stop receiving events. Existing endpoints without an `events` field continue receiving ordinary project events.

Previously registered HTTP destinations no longer receive events. Replace them by deleting the old registration and creating an HTTPS endpoint.

## Next Steps

To build a secure and resilient webhook integration, explore our dedicated guides:

* Learn how to secure your receiver in [Signature Verification](https://docs.botsubscription.com/webhooks/signature-verification/).
* Implement robust processing in [Deduplication & Retries](https://docs.botsubscription.com/webhooks/delivery-retries/).
