# Webhook inbox

> Stores verified webhooks once per message id, per tenant when given, then processes them with leases, retries and checkpoints, in its own table or one of the app's.

- Category: Automation
- Module: `webhook-inbox`
- Modes: `managed`
- Docs: https://bettersupabase.com/docs/blocks/queue
- Page: https://bettersupabase.com/blocks/webhook-inbox

## Install

```bash
npx better-supabase add webhook-inbox
```

The command also installs `housekeeping`.

## Configure

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

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

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

## Client

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

## Related blocks

Requires: [housekeeping](https://bettersupabase.com/blocks/housekeeping.md)

Works with: [data-lifecycle](https://bettersupabase.com/blocks/data-lifecycle.md), [housekeeping](https://bettersupabase.com/blocks/housekeeping.md)
