# Incoming webhook endpoints

> Per-tenant trigger URLs with a hashed token, optional Standard Webhooks or HMAC verification, a body size limit, receive counters and the last status; deliveries go to the webhook inbox with the endpoint's tenant.

- Category: Developer platform
- Module: `incoming-webhooks`
- Modes: `managed`
- Docs: https://bettersupabase.com/docs/blocks/incoming-webhooks
- Page: https://bettersupabase.com/blocks/incoming-webhooks

## Install

```bash
npx better-supabase add incoming-webhooks
```

The command also installs `updated-at`, `memberships`, `webhook-inbox`, `permissions`, `housekeeping`.

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Required by incoming-webhooks; add installs them too.
    "updated-at": {},
    memberships: {},
    "webhook-inbox": {},
    permissions: {},
    housekeeping: {},
    // Modes: "managed". The default is "managed".
    "incoming-webhooks": { mode: "managed" },
  },
});
```

## Client

The block is SQL only: call its functions from your policies, RPCs and the other modules.

## Events

- `incoming_webhook.created`
- `incoming_webhook.deleted`
- `incoming_webhook.enabled_changed`
- `incoming_webhook.secret_rotated`
- `incoming_webhook.token_rotated`
- `incoming_webhook.updated`

## Related blocks

Requires: [permissions](https://bettersupabase.com/blocks/permissions.md), [updated-at](https://bettersupabase.com/blocks/updated-at.md), [webhook-inbox](https://bettersupabase.com/blocks/webhook-inbox.md)
